KiCad PCB EDA Suite
|
This class was created to handle importing ellipses from other file formats that support them natively. More...
#include <ellipse.h>
Public Member Functions | |
ELLIPSE ()=default | |
ELLIPSE (const VECTOR2< NumericType > &aCenter, NumericType aMajorRadius, NumericType aMinorRadius, EDA_ANGLE aRotation, EDA_ANGLE aStartAngle=ANGLE_0, EDA_ANGLE aEndAngle=FULL_CIRCLE) | |
Constructs an ellipse or elliptical arc. | |
ELLIPSE (const VECTOR2< NumericType > &aCenter, const VECTOR2< NumericType > &aMajor, double aRatio, EDA_ANGLE aStartAngle=ANGLE_0, EDA_ANGLE aEndAngle=FULL_CIRCLE) | |
Constructs a DXF-style ellipse or elliptical arc, where the major axis is given by a point rather than a radius, and therefore defines not only the major radius but also the rotation of the ellipse. | |
Public Attributes | |
VECTOR2< NumericType > | Center |
NumericType | MajorRadius |
NumericType | MinorRadius |
EDA_ANGLE | Rotation |
EDA_ANGLE | StartAngle |
EDA_ANGLE | EndAngle |
This class was created to handle importing ellipses from other file formats that support them natively.
The storage format and API may need to be refactored before this is used as part of a potential future native KiCad ellipse.
ELLIPSE< NumericType >::ELLIPSE | ( | const VECTOR2< NumericType > & | aCenter, |
NumericType | aMajorRadius, | ||
NumericType | aMinorRadius, | ||
EDA_ANGLE | aRotation, | ||
EDA_ANGLE | aStartAngle = ANGLE_0 , |
||
EDA_ANGLE | aEndAngle = FULL_CIRCLE |
||
) |
Constructs an ellipse or elliptical arc.
The ellipse sweeps from aStartAngle to aEndAngle in a counter-clockwise direction.
aCenter | is the center point of the ellipse. |
aMajorRadius | is the radius of the "x-axis" dimension of the ellipse. |
aMinorRadius | is the radius of the "y-axis" dimension of the ellipse. |
aRotation | is the angle of the ellipse "x-axis" relative to world x-axis. |
aStartAngle | is the starting angle of the elliptical arc. |
aEndAngle | is the ending angle of the elliptical arc. |
Definition at line 24 of file ellipse.cpp.
ELLIPSE< NumericType >::ELLIPSE | ( | const VECTOR2< NumericType > & | aCenter, |
const VECTOR2< NumericType > & | aMajor, | ||
double | aRatio, | ||
EDA_ANGLE | aStartAngle = ANGLE_0 , |
||
EDA_ANGLE | aEndAngle = FULL_CIRCLE |
||
) |
Constructs a DXF-style ellipse or elliptical arc, where the major axis is given by a point rather than a radius, and therefore defines not only the major radius but also the rotation of the ellipse.
aCenter | is the center point of the ellipse. |
aMajor | is the endpoint of the major axis, relative to the center. |
aRatio | is the ratio of the minor axis length to the major axis length. |
aStartAngle | is the starting angle of the elliptical arc. |
aEndAngle | is the ending angle of the elliptical arc. |
Definition at line 38 of file ellipse.cpp.
References VECTOR2< T >::EuclideanNorm(), ELLIPSE< NumericType >::MajorRadius, ELLIPSE< NumericType >::MinorRadius, RADIANS_T, ELLIPSE< NumericType >::Rotation, VECTOR2< T >::x, and VECTOR2< T >::y.
Definition at line 67 of file ellipse.h.
Referenced by TransformEllipseToBeziers().
Definition at line 72 of file ellipse.h.
Referenced by TransformEllipseToBeziers().
NumericType ELLIPSE< NumericType >::MajorRadius |
Definition at line 68 of file ellipse.h.
Referenced by ELLIPSE< NumericType >::ELLIPSE(), and TransformEllipseToBeziers().
NumericType ELLIPSE< NumericType >::MinorRadius |
Definition at line 69 of file ellipse.h.
Referenced by ELLIPSE< NumericType >::ELLIPSE(), and TransformEllipseToBeziers().
Definition at line 70 of file ellipse.h.
Referenced by ELLIPSE< NumericType >::ELLIPSE(), and TransformEllipseToBeziers().
Definition at line 71 of file ellipse.h.
Referenced by TransformEllipseToBeziers().