|
KiCad PCB EDA Suite
|
Plain ellipse / elliptical-arc data. More...
#include <ellipse.h>
Public Member Functions | |
| ELLIPSE () | |
| 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. | |
| void | Mirror (const VECTOR2< NumericType > &aRef, FLIP_DIRECTION aFlipDirection) |
| Mirror the ellipse along a horizontal or vertical axis passing through aRef. | |
Public Attributes | |
| VECTOR2< NumericType > | Center |
| NumericType | MajorRadius |
| NumericType | MinorRadius |
| EDA_ANGLE | Rotation |
| EDA_ANGLE | StartAngle |
| EDA_ANGLE | EndAngle |
Plain ellipse / elliptical-arc data.
Used by SHAPE_ELLIPSE, by EDA_SHAPE's native ellipse storage, and by importers that need to round-trip ellipses.
Definition at line 34 of file ellipse.h.
References MajorRadius, and MinorRadius.
| 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.
References Center, EndAngle, MajorRadius, MinorRadius, Rotation, and StartAngle.
| 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 Center, EndAngle, VECTOR2< T >::EuclideanNorm(), MajorRadius, MinorRadius, RADIANS_T, Rotation, StartAngle, VECTOR2< T >::x, and VECTOR2< T >::y.
| void ELLIPSE< NumericType >::Mirror | ( | const VECTOR2< NumericType > & | aRef, |
| FLIP_DIRECTION | aFlipDirection ) |
Mirror the ellipse along a horizontal or vertical axis passing through aRef.
Definition at line 52 of file ellipse.cpp.
References Center, EndAngle, LEFT_RIGHT, Rotation, StartAngle, VECTOR2< T >::x, and VECTOR2< T >::y.
Definition at line 74 of file ellipse.h.
Referenced by EDA_SHAPE::Compare(), ELLIPSE(), ELLIPSE(), Mirror(), EDA_SHAPE::operator==(), and TransformEllipseToBeziers().
Definition at line 79 of file ellipse.h.
Referenced by EDA_SHAPE::Compare(), ELLIPSE(), ELLIPSE(), Mirror(), EDA_SHAPE::operator==(), and TransformEllipseToBeziers().
| NumericType ELLIPSE< NumericType >::MajorRadius |
Definition at line 75 of file ellipse.h.
Referenced by EDA_SHAPE::Compare(), ELLIPSE(), ELLIPSE(), ELLIPSE(), EDA_SHAPE::operator==(), and TransformEllipseToBeziers().
| NumericType ELLIPSE< NumericType >::MinorRadius |
Definition at line 76 of file ellipse.h.
Referenced by EDA_SHAPE::Compare(), ELLIPSE(), ELLIPSE(), ELLIPSE(), EDA_SHAPE::operator==(), and TransformEllipseToBeziers().
Definition at line 77 of file ellipse.h.
Referenced by EDA_SHAPE::Compare(), ELLIPSE(), ELLIPSE(), Mirror(), EDA_SHAPE::operator==(), and TransformEllipseToBeziers().
Definition at line 78 of file ellipse.h.
Referenced by EDA_SHAPE::Compare(), ELLIPSE(), ELLIPSE(), Mirror(), EDA_SHAPE::operator==(), and TransformEllipseToBeziers().