Arc
data class Arc(val center: Vector2, val radius: Double, val angle0: Double, val angle1: Double) : LinearType<Arc> , GeometricPrimitive2D(source)
Represents an arc defined by a center point, a radius, and a range of angles.
This class provides methods to compute the position of a point along the arc and to create a shape contour representation of the arc.
Constructors
Properties
Link copied to clipboard
A computed property that provides a ShapeContour representation of the arc. The contour is constructed by moving to the position at the start of the arc (t=0.0), and then creating a circular arc from that point through an intermediate position (t=0.5) before ending at the final position (t=1.0).