20#ifndef KICAD_ELLIPSE_H
21#define KICAD_ELLIPSE_H
30template <
typename NumericType>
VECTOR2< NumericType > GetArcEndPoint() const
Get the point on the ellipse at the end angle of the arc.
VECTOR2< NumericType > GetPointAtAngle(EDA_ANGLE angle) const
Get the point on the ellipse at a given angle.
void Mirror(const VECTOR2< NumericType > &aRef, FLIP_DIRECTION aFlipDirection)
Mirror the ellipse along a horizontal or vertical axis passing through aRef.
VECTOR2< NumericType > GetArcStartPoint() const
Get the point on the ellipse at the start angle of the arc.
EDA_ANGLE GetAngleAtPoint(const VECTOR2< NumericType > &aPt) const
Get the parametric angle of a point on the ellipse.
VECTOR2< NumericType > Center
EDA_ANGLE GetSubtendedAngle() const
Get the subtended angle of the ellipse or elliptical arc at the center.
Define a general 2D-vector/point.
static constexpr EDA_ANGLE ANGLE_0
static constexpr EDA_ANGLE FULL_CIRCLE