CircularArc

public final class CircularArc extends ParametricCurve

Constructors

Link copied to clipboard
public CircularArc CircularArc(Vector2d center, Double radius, Angle startAngle, Angle endAngle)

Properties

Link copied to clipboard
private final Vector2d center
Link copied to clipboard
private final Angle endAngle
Link copied to clipboard
private final Double radius
Link copied to clipboard
private final Angle startAngle

Functions

Link copied to clipboard
public final static CircularArc fromPoint(Vector2d start, Angle startTangent, Double radius, Angle turnAngle)
Link copied to clipboard
public final Vector2d getCenter()
Link copied to clipboard
public final Angle getEndAngle()
Link copied to clipboard
public final Double getRadius()
Link copied to clipboard
public final Angle getStartAngle()
Link copied to clipboard
public Double length()

Returns the length of the curve.

Link copied to clipboard
public Double project(Vector2d query)

Returns the nearest point on the curve in terms of the internal parameter t.

Link copied to clipboard

If this curve can not trivially be reparameterized to an arc length parameter, it should be done here.