Project Zomboid Lua Docs 42.20.3
Unofficial documentation for Project Zomboid's Lua
Loading...
Searching...
No Matches
ISBounds Class Reference

Public Member Functions

void setPosition (number x, number y)
number getWidth ()
ISBounds setWidth (nil width)
number getHeight ()
ISBounds setHeight (nil height)
number getLeft ()
void setLeft (number left)
number getRight ()
void setRight (number right)
number getCenterX ()
number getTop ()
void setTop (number top)
number getBottom ()
void setBottom (number bottom)
number getCenterY ()
ISBounds clone ()
ISBounds getMovedTo (number x, number y)
ISBounds getMoved (number x, number y)
ISBounds move (number x, number y)
ISBounds scaleFromCenter (number scaleX, number scaleY)
ISBounds scaleXFromCenter (number scale)
ISBounds scaleYFromCenter (number scale)
ISBounds getScaledFromCenter (number scaleX, number scaleY)
string tostring ()
 ISBounds (number x, number y, number width, number height)

Static Public Member Functions

static ISBounds intersection (ISBounds a, ISBounds b)
static boolean intersects (ISBounds a, ISBounds b)
static ISBounds getProjectedAlongY (ISBounds bounds, number yDistance)
static ISBounds getProjectedAlongX (ISBounds bounds, number yDistance)
static number getYDistanceTo (ISBounds boundsA, ISBounds boundsB)
static number getXDistanceTo (ISBounds boundsA, ISBounds boundsB)

Public Attributes

number x
number y
number width
number height

Constructor & Destructor Documentation

◆ ISBounds()

ISBounds::ISBounds ( number x,
number y,
number width,
number height )

Member Function Documentation

◆ clone()

ISBounds ISBounds::clone ( )

◆ getBottom()

number ISBounds::getBottom ( )

◆ getCenterX()

number ISBounds::getCenterX ( )

◆ getCenterY()

number ISBounds::getCenterY ( )

◆ getHeight()

number ISBounds::getHeight ( )

◆ getLeft()

number ISBounds::getLeft ( )

◆ getMoved()

ISBounds ISBounds::getMoved ( number x,
number y )

◆ getMovedTo()

ISBounds ISBounds::getMovedTo ( number x,
number y )

◆ getProjectedAlongX()

ISBounds ISBounds::getProjectedAlongX ( ISBounds bounds,
number yDistance )
static

◆ getProjectedAlongY()

ISBounds ISBounds::getProjectedAlongY ( ISBounds bounds,
number yDistance )
static

◆ getRight()

number ISBounds::getRight ( )

◆ getScaledFromCenter()

ISBounds ISBounds::getScaledFromCenter ( number scaleX,
number scaleY )

◆ getTop()

number ISBounds::getTop ( )

◆ getWidth()

number ISBounds::getWidth ( )

◆ getXDistanceTo()

number ISBounds::getXDistanceTo ( ISBounds boundsA,
ISBounds boundsB )
static

◆ getYDistanceTo()

number ISBounds::getYDistanceTo ( ISBounds boundsA,
ISBounds boundsB )
static

◆ intersection()

ISBounds ISBounds::intersection ( ISBounds a,
ISBounds b )
static

◆ intersects()

boolean ISBounds::intersects ( ISBounds a,
ISBounds b )
static

◆ move()

ISBounds ISBounds::move ( number x,
number y )

◆ scaleFromCenter()

ISBounds ISBounds::scaleFromCenter ( number scaleX,
number scaleY )

◆ scaleXFromCenter()

ISBounds ISBounds::scaleXFromCenter ( number scale)

◆ scaleYFromCenter()

ISBounds ISBounds::scaleYFromCenter ( number scale)

◆ setBottom()

void ISBounds::setBottom ( number bottom)

◆ setHeight()

ISBounds ISBounds::setHeight ( nil height)

◆ setLeft()

void ISBounds::setLeft ( number left)

◆ setPosition()

void ISBounds::setPosition ( number x,
number y )

◆ setRight()

void ISBounds::setRight ( number right)

◆ setTop()

void ISBounds::setTop ( number top)

◆ setWidth()

ISBounds ISBounds::setWidth ( nil width)

◆ tostring()

string ISBounds::tostring ( )

Member Data Documentation

◆ height

number ISBounds::height

◆ width

number ISBounds::width

◆ x

number ISBounds::x

◆ y

number ISBounds::y

The documentation for this class was generated from the following file: