Inheritance diagram for Rect:

Properties | |
| Number | bottom |
| Point | center |
| Number | height |
| Number | left |
| Number | right |
| Number | top |
| Number | width |
| Number | x |
| Number | y |
Methods | |
| 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) |
Constructors | |
| Rect (Rect rect) | |
| Rect (Number xVal, Number yVal, Number wVal, Number hVal) | |
| Rect () | |
This is the DAZ Script counterpart of the QRect type used in the DAZ Studio SDK. A Rect object is a two dimensional representation of a rectangle.
| Rect::Rect | ( | ) |
Default Constructor.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| xVal | The x coordinate of the rectangle | |
| yVal | The y coordiante of the rectangle | |
| wVal | The width of the rectangle | |
| hVal | The height of the rectangle |
| Rect::Rect | ( | Rect | rect | ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| rect | The rectangle to copy |
| rect | The rectangle to test against this rectangle |
| rect | The rectangle to intersect with this rectangle |
| rect | The rectangle to test against this rectangle |
| Boolean Rect::isEmpty | ( | ) |
| Boolean Rect::isNull | ( | ) |
| void Rect::moveBottom | ( | Number | pos | ) |
Moves the rectangle so its bottom property is equal to pos.
| pos | The new bottom boundary of the triangle |
Translates the rectangle by dx and dy, the width and height remain unchanged.
| dx | The distance in x to move the rectangle | |
| dy | The distance in y to move the rectangle |
| void Rect::moveLeft | ( | Number | pos | ) |
Moves the rectangle so its left property is equal to pos.
| pos | The new left boundary of the triangle |
| void Rect::moveRight | ( | Number | pos | ) |
Moves the rectangle so its right property is equal to pos.
| pos | The new right boundary of the triangle |
| void Rect::moveTop | ( | Number | pos | ) |
Moves the rectangle so its top property is equal to pos.
| pos | The new top boundary of the triangle |
| void Rect::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 Rect::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 | The rectangle to add to this rectangle |
The rectangle's bottom
The rectangle's center
The rectangle's height
The rectangle's left
The rectangle's right
The rectangle's width