2D arc.
More...
#include <Arc2D.h>
2D arc.
Definition at line 35 of file Arc2D.h.
◆ Arc2D()
Arc2D |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
radius, |
|
|
double |
angle1, |
|
|
double |
angle2 |
|
) |
| |
Constructor.
- Parameters
-
[in] | x | Center X coordinate. |
[in] | y | Center Y coordinate. |
[in] | radius | Radius. |
[in] | angle1 | Angle 1. |
[in] | angle2 | Angle 2. |
Values of angles must be from -M_PI to M_PI (as returned by atan2()).
Definition at line 16 of file Arc2D.cc.
◆ angleWithinRange()
bool angleWithinRange |
( |
double |
angle | ) |
const |
Check if angle is within the arc.
- Parameters
-
[in] | angle | Angle from -M_PI to M_PI. |
Definition at line 28 of file Arc2D.cc.
The documentation for this class was generated from the following files: