#include <CircularArc3.h>
Public Types | |
typedef T | Number |
The number type. | |
typedef ads::FixedArray< 3, Number > | Point |
The representation of a point. | |
Public Member Functions | |
Constructors etc. | |
CircularArc3 () | |
Default constructor. Uninitialized memory. | |
CircularArc3 (const Point ¢er, const Point &source, const Point &target) | |
Construct from the center, the source, and the target. | |
CircularArc3 (const CircularArc3 &other) | |
Copy constructor. | |
CircularArc3 & | operator= (const CircularArc3 &other) |
Assignment operator. | |
~CircularArc3 () | |
Trivial destructor. | |
void | make (const Point ¢er, const Point &source, const Point &target) |
Make from the center, the source, and the target. | |
Accesors. | |
const Circle & | getCircle () const |
Return the circle. | |
const Point & | getCenter () const |
Return the center. | |
Number | getRadius () const |
Return the radius. | |
const Point & | getFirstAxis () const |
Return the first axis. | |
const Point & | getSecondAxis () const |
Return the second axis. | |
Number | getAngle () const |
Return the angle. | |
Functor. | |
Point | operator() (const Number t) const |
Evaluate a point on the circular arc. | |
Translations. | |
CircularArc3 & | operator+= (const Point &x) |
Translate by p. | |
CircularArc3 & | operator-= (const Point &x) |
Translate by -p. | |
Validity. | |
bool | isValid () const |
Return true if the circular arc is valid. | |
Related Functions | |
(Note that these are not member functions.) | |
bool | operator== (const CircularArc3< T > &x, const CircularArc3< T > &y) |
Return true if the balls are equal. | |
bool | operator!= (const CircularArc3< T > &x, const CircularArc3< T > &y) |
Return true if the balls are not equal. | |
CircularArc3< T > | operator+ (const CircularArc3< T > &circularArc, const typename CircularArc3< T >::Point &vector) |
Return a circular arc translated by the vector. | |
CircularArc3< T > | operator- (const CircularArc3< T > &circularArc, const typename CircularArc3< T >::Point &vector) |
Return a circular arc translated by the negative of the vector. | |
std::istream & | operator>> (std::istream &in, CircularArc3< T > &x) |
Read a circular arc. | |
std::ostream & | operator<< (std::ostream &out, const CircularArc3< T > &x) |
Write the circular arc. |
T | is the number type. By default it is double. |
x = center + radius * (axis0 * cos(angle * t) + axis1 * sin(angle * t))
Thus the circular arc lies on the circle. It starts at the first axis and goes in the positive direction toward the second axis through the defined angle.
Point geom::CircularArc3< T >::operator() | ( | const Number | t | ) | const [inline] |
Evaluate a point on the circular arc.
The arc is parametrized with .