Ipelib
|
An arc of an ellipse. More...
#include <ipegeo.h>
An arc of an ellipse.
The ellipse is represented using the matrix that transforms the unit circle x^2 + y^2 = 1 to the desired ellipse. The arc coordinate system is the coordinate system of this unit circle.
A full ellipse is described by iAlpha = 0, iBeta = IpeTwoPi.
An elliptic arc is the image of the circular arc from iAlpha to iBeta (in increasing angle in arc coordinate system).
ipe::Arc::Arc | ( | ) | [inline] |
Construct unit circle.
Construct with given parameters.
ipe::Arc::Arc | ( | const Matrix & | m | ) | [inline] |
Construct an ellipse.
Construct arc for ellipse defined by m, from begp to endp.
This assumes that m has been correctly computed such that begb and endp already lie on the ellipse.
bool ipe::Arc::isEllipse | ( | ) | const [inline] |
Is this an entire ellipse?
double Arc::distance | ( | const Vector & | v, |
double | bound | ||
) | const |
This doesn't really compute the distance, but a reasonable approximation.
Like distance(), but sets pos to point on arc and angle to its angle in arc coordinates. angle and pos are not modified if result is larger than bound.
Rect Arc::bbox | ( | ) | const |
Return a tight bounding box.
Vector ipe::Arc::beginp | ( | ) | const [inline] |
Return begin point of arc.
Vector ipe::Arc::endp | ( | ) | const [inline] |
Return end point of arc.