DAZ Script | |
---|---|
DzVec3 | closestPoint ( DzVec3 point ) |
Boolean | containsPoint ( DzVec3 point ) |
DzVec3 | getCenter () |
Object | getIntersection ( DzLine3 ray ) |
Number | getSize () |
DzBox3 | getTransformedBox ( DzMatrix3 matrix ) |
void | include ( DzVec3 vec ) |
void | include ( DzBox3 box ) |
Boolean | isValid () |
Boolean | testIntersection ( DzLine3 ray, Number tolerance ) |
String | toString () |
void | translate ( DzVec3 vec ) |
Represents a three dimensional box by storing two three dimensional floating point vectors; an upper and lower corner for this box.
Holds the maximum corner of this box.
Holds the maximum value of this box on the x axis.
Holds the maximum value of this box on the y axis.
Holds the maximum value of this box on the z axis.
Holds the minimum corner of this box.
Holds the minimum value of this box on the x axis.
Holds the minimum value of this box on the y axis.
Holds the minimum value of this box on the z axis.
DzBox3()
Creates an uninitialized box - the first point included in an uninitialized box will become the min and max for this box.
Creates a box by parsing a string.
Parameter(s):
DzBox3( Number xMin, Number yMin, Number zMin, Number xMax, Number yMax, Number zMax )
Creates an initialized box with the given min and max values.
Parameter(s):
DzBox3( DzVec3 min, DzVec3 max )
Creates an initialized box with the given min and max values.
Parameter(s):
DzBox3( DzBox3 box )
Copy Constructor.
Parameter(s):
DzVec3 : closestPoint( DzVec3 point )
Parameter(s):
Return Value:
point
. Returns point
if point
is already in this box.Since:
Boolean : containsPoint( DzVec3 point )
Parameter(s):
Return Value:
true
if point
is inside this box, otherwise false
.Since:
Return Value:
Object : getIntersection( DzLine3 ray )
Tests this box for intersection with the ray, and determines the two points on this box intersected by the line.
Parameter(s):
Return Value:
ray
intersects.Since:
Return Value:
DzBox3 : getTransformedBox( DzMatrix3 matrix )
Creates a new box by transforming the corners of this box through the given matrix and then including them.
Parameter(s):
Return Value:
Parameter(s):
void : include( DzBox3 box )
Grows this box, if necessary, to include the given box.
Parameter(s):
Return Value:
true
if this box is valid, false
if it is uninitialized.Since:
Boolean : testIntersection( DzLine3 ray, Number tolerance )
Provides a fast intersection test without returning the intersection locations. This function is much faster than getIntersection().
Parameter(s):
Return Value:
true
if the ray intersects this box, otherwise false
.Since:
Return Value:
void : translate( DzVec3 vec )
Translates this box by adding the given vector.
Parameter(s):