DAZ Script | |
---|---|
DzVec3 | getDirection () |
DzVec3 | getPoint ( Number t ) |
Number | length ( Number t=1.0 ) |
Boolean | linesIntersect ( DzLine3 line, DzVec3 intersection, Number tolerance=0.0 ) |
Number | minDistance ( DzVec3 pnt, Number s, Boolean clampEnds=false ) |
Number | minDistance ( DzLine3 line1, Number s, Number t ) |
Number | minDistanceSquared ( DzVec3 pnt, Number s, Boolean clampEnds=false ) |
void | negate () |
Boolean | planeIntersect ( DzVec3 planePoint, DzVec3 planeNormal, Number t, DzVec3 intersection ) |
Boolean | segmentsIntersect ( DzLine3 line, DzVec3 intersection, Number tolerance=0.0 ) |
void | setLength ( Number length ) |
void | swapEnds () |
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.
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:
Boolean : linesIntersect( DzLine3 line, DzVec3 intersection, 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:
true
if this line intersects with the given line, otherwise false
.Since:
Number : minDistance( DzVec3 pnt, Number s, Boolean clampEnds=false )
Return Value:
s
is the parametric distance along the line to the minimum perpendicular distance point. If clampEnds
is 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.Since:
Number : minDistance( DzLine3 line1, Number s, Number t )
Parameter(s):
Return Value:
Since:
Number : minDistanceSquared( DzVec3 pnt, Number s, Boolean clampEnds=false )
Return Value:
clampEnds
is true
, the parametric distance is clamped to the [0-1] range and the nearest point to the line segment is returned rather than the distance to the infinite line formed by two end points of a segment.Since:
void : negate()
Reverses the direction of the line by mirroring the endpoint.
Since:
Boolean : planeIntersect( DzVec3 planePoint, DzVec3 planeNormal, Number t, DzVec3 intersection )
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:
true
if this line intersects the given plane, false
if not (i.e. the two are parallel).Since:
Boolean : segmentsIntersect( DzLine3 line, DzVec3 intersection, Number tolerance=0.0 )
Tests the intersection of two line segments.
Parameter(s):
Return Value:
true
if this line segment intersects with the given line segment, otherwise false
.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: