DAZ Script | |
---|---|
Boolean | contains ( Rect rect ) |
Rect | intersection ( Rect rect ) |
Boolean | intersects ( Rect rect ) |
Boolean | isEmpty () |
Boolean | isNull () |
void | moveBottom ( Number pos ) |
void | moveBy ( Number dx, Number dy ) |
void | moveLeft ( Number pos ) |
void | moveRight ( Number pos ) |
void | moveTop ( Number pos ) |
void | normalize () |
void | normalize () |
Rect | union ( Rect rect ) |
This is the script counterpart to the QRect type used in the C++ SDK. A Rect object is a two dimensional representation of a rectangle.
Attention:
Holds the rectangle's bottom.
Holds the rectangle's center.
Holds the rectangle's height.
Holds the rectangle's left.
Holds the rectangle's right.
Holds the rectangle's top.
Holds the rectangle's width.
Holds the rectangle's x position.
Holds the rectangle's y position.
Rect()
Default Constructor.
Rect( Rect rect )
Parameter(s):
Rect( Number xVal, Number yVal, Number wVal, Number hVal )
Parameter(s):
Boolean : contains( Rect rect )
Parameter(s):
Return Value:
true
if this rectangle contains the given rectangle, otherwise false
.Rect : intersection( Rect rect )
Parameter(s):
Return Value:
Boolean : intersects( Rect rect )
Parameter(s):
Return Value:
true
if this rectangle intersects with the given rectangle, otherwise false
.Return Value:
true
if the rectangle is empty, i.e the width and height of the rectangle are negative, otherwise false
.Return Value:
true
if the width and height of the rectangle are 0, otherwise false
.void : moveBottom( Number pos )
Moves the rectangle so its bottom property is equal to pos
.
Parameter(s):
void : moveBy( Number dx, Number dy )
Translates the rectangle by dx
and dy
, the width and height remain unchanged.
Parameter(s):
Moves the rectangle so its left property is equal to pos
.
Parameter(s):
void : moveRight( Number pos )
Moves the rectangle so its right property is equal to pos
.
Parameter(s):
Moves the rectangle so its top property is equal to pos
.
Parameter(s):
void : normalize()
Normalizes the rectangle - changes the prefix of width/height if they are negative. The rectangle will no longer be empty after it is normalized.
void : normalize()
Normalizes the rectangle - changes the prefix of width/height if they are negative. The rectangle will no longer be empty after it is normalized.
Rect : union( Rect rect )
Parameter(s):
Return Value: