DAZ Script | |
---|---|
DzVec3 | getDirection () |
DzVec3 | getPoint ( Number t ) |
Number | length ( Number t=1.0 ) |
Object | linesIntersect ( DzLine3 line, Number tolerance=0.0 ) |
Object | minDistanceFromLine ( DzLine3 line ) |
Object | minDistanceFromLineSquared ( DzLine3 line ) |
Object | minDistanceFromPoint ( DzVec3 pnt, Boolean clampEnds=false ) |
Object | minDistanceFromPointSquared ( DzVec3 pnt, Boolean clampEnds=false ) |
Object | minDistanceFromRay ( DzLine3 ray ) |
Object | minDistanceFromRaySquared ( DzLine3 ray ) |
void | negate () |
Object | planeIntersect ( DzVec3 planePoint, DzVec3 planeNormal ) |
Object | segmentsIntersect ( DzLine3 line, Number tolerance=0.0 ) |
void | setLength ( Number length ) |
void | swapEnds () |
String | toString () |
TODO: Add detailed description.
Holds the line's ending point in three dimensional space.
Holds the line's starting point in three dimensional space.
DzLine3()
Default Constructor. Creates an uninitialized line.
Creates a quaternion by parsing a string.
Parameter(s):
DzLine3( DzLine3 line )
Copy Constructor.
DzLine3( DzVec3 origin, DzVec3 end )
Parameterized Constructor.
Parameter(s):
DzVec3 : getDirection()
Return Value:
Since:
Return Value:
Since:
Number : length( Number t=1.0 )
Return Value:
See Also:
Since:
Object : linesIntersect( DzLine3 line, Number tolerance=0.0 )
Tests the intersection of two lines. This line and the given line are assumed to be infinitely long in both directions (i.e. the intersection can be outside the origin-end segment of either line).
Parameter(s):
Return Value:
Since:
Object : minDistanceFromLine( DzLine3 line )
Parameter(s):
Return Value:
Since:
Object : minDistanceFromLineSquared( DzLine3 line )
Parameter(s):
Return Value:
Since:
Object : minDistanceFromPoint( DzVec3 pnt, Boolean clampEnds=false )
Parameter(s):
true
, the parametric distance is clamped to the [0-1] range and the nearest point to the line segment is returned rather than the nearest distance to the infinite line formed by the two end points of the segment.Return Value:
Since:
Object : minDistanceFromPointSquared( DzVec3 pnt, Boolean clampEnds=false )
Parameter(s):
true
, the parametric distance is clamped to the [0-1] range and the nearest point to the line segment is returned rather than the nearest distance to the infinite line formed by the two end points of the segment.Return Value:
Since:
Object : minDistanceFromRay( DzLine3 ray )
Parameter(s):
Return Value:
Since:
Object : minDistanceFromRaySquared( DzLine3 ray )
Parameter(s):
Return Value:
Since:
void : negate()
Reverses the direction of the line by mirroring the endpoint.
Since:
Object : planeIntersect( DzVec3 planePoint, DzVec3 planeNormal )
Calculates the intersection of this line and the plane specified. The plane is defined by a point on the plane and the normal to the plane.
Parameter(s):
Return Value:
Since:
Object : segmentsIntersect( DzLine3 line, Number tolerance=0.0 )
Tests the intersection of two line segments.
Parameter(s):
Return Value:
Since:
void : setLength( Number length )
Sets the line to have the length given by setting the endpoint relative to the current origin.
See Also:
Since:
void : swapEnds()
Swaps the origin for the endpoint.
Since:
Return Value: