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.
Set the polyline to be closed (that is, there is a segment drawn from the last vertex to the first) if 'value' is true. Set the polyline to be open (no segment between the last and first vertices) if 'value' is false.
End point of this polyline
Length of this curve.
The number of vertices in the polyline
Start point of this polyline
This function adds a vertex to the polyline. If index is 0, the vertex will become the first vertex of the polyline. If index is the value returned by this.numberOfVertices, then the vertex will become the last vertex of the polyline. Otherwise the vertex will be added just before the index vertex.
Input index (0 based) before which to insert the vertex
Input vertex location 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.
Get the 2d location of the vertex index in the polyline's own object coordinate system (OCS).
Input index (0 based) of the vertex
Return an array of points to draw this polyline.
Input the nubmer of points returned for arc segmentation
Return an array of point
Return an array of points to draw this polyline.
Input the nubmer of points returned for arc segmentation
Input z value of points returned
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 the polyline geometry.