Protected
_boundingProtected
arcWhen this is set, it calculates the bounding box of this shape and resets this property to false. Default is false.
Center of circular arc
Rotation direction of the arc.
Return true if its start point is identical to its end point. Otherwise, return false.
Angle between endAngle and startAngle in range 0 to 2*PI
End angle in radians of circular arc in the range 0 to 2 * PI.
End point of circular arc
Get length of circular arc
Middle point of circular arc
Radius of circular arc
Start angle in radians of circular arc in the range 0 to 2 * PI.
Start point of circular arc
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.
Calculate a point on the ellipse at a given angle.
Input the angle in radians where the point is to be calculated.
Return the 2d coordinates of the point on the circular arc.
Divide this arc into the specified nubmer of points and return those points as an array of points.
Optional
numPoints: numberInput the nubmer of points returned
Return an array of points
Return a set of divisions + 1 equi-spaced points using getPointAt(u)
.
Optional
divisions: numberInput 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.
Represent a circular arc.