This constructor initializes the line object to use start as the start point, and end as the endpoint. Both points must be in WCS coordinates.
Protected
_boundingProtected
arcWhen this is set, it calculates the bounding box of this shape and resets this property to false. Default is false.
Return true if its start point is identical to its end point. Otherwise, return false.
The line's endpoint in WCS coordinates
Return the line's endpoint in WCS coordinates.
End point of this curve. If the curve is closed, coordinates of start point will be equal to coordinates of end point.
Length of this curve.
The line's startpoint in WCS coordinates
Return the line's startpoint in WCS coordinates.
Start point of this curve. If the curve is closed, coordinates of start point will be equal to coordinates of end point.
Return the point for a given position on the curve according to the arc length.
Return the point for a given position on the curve according to the arc length.
Return a point for a given position on the curve according to the arc length.
Input a position on the curve according to the arc length. Must be in the range [0, 1].
Return a point for a given position on the curve according to the arc length.
Convert line to a point array with start point and end point.
Return an array of point
Return a set of divisions + 1 equi-spaced points using getPointAt(u)
.
Input number of pieces to divide the curve into. Default is 5.
Return a set of divisions + 1 equi-spaced points using getPointAt(u)
.
Return a unit vector tangent at t
. If the derived curve does not implement its tangent derivation,
two points a small delta apart will be used to find its gradient which seems to give a reasonable
approximation.
Input a position on the curve. Must be in the range [ 0, 1 ].
Return a unit vector tangent at t
.
Return tangent at a point which is equidistant to the ends of the curve from the point given in
getTangent
.
Input a position on the curve according to the arc length. Must be in the range [0, 1].
Return tangent at a point which is equidistant to the ends of the curve from the point
given in getTangent
.
Transforms the entity by applying the input matrix.
Input transformation matrix
Return new shape translated by given vector.
The class represents one 3d line geometry specified by its start point and end point.