Create one loop by connected curves
Input one array of connected curves
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.
End point of this polyline
Length of this curve.
The number of edges in this loop
Start point of this polyline
Append an edge to this loop
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.
Return boundary points of this area
Input the nubmer of points returned for arc segmentation
Return points
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 representing one closed loop created by connected edges, which can be line, circular arc, ellipse arc, or spline.