A core axis class.
More...
#include <axis.h>
◆ Axis2()
Creates an axis given end vertices.
- Parameters
-
| a,b | End vertices of the axis. |
◆ Radial() [1/2]
Compute the radial coordinates of a point.
- Parameters
-
- Returns
- A vector (x,y) where x is the radial coordinate and y the axial coordinate.
◆ Radial() [2/2]
Compute the radial coordinates of a point.
- Parameters
-
| p | Point. |
| av | Returned axis vector. |
| rv | Returned radial vector. |
- Returns
- Axial coordinate.
◆ Rotate()
| void Axis2::Rotate |
( |
const Matrix2 & | r | ) |
|
◆ Scale()
| void Axis2::Scale |
( |
const double & | s | ) |
|
◆ Symmetric() [1/3]
| Box2 Axis2::Symmetric |
( |
const Box2 & | box | ) |
const |
Symmetric box.
- Parameters
-
◆ Symmetric() [2/3]
Symmetric circle.
- Parameters
-
◆ Symmetric() [3/3]
Symmetric point.
- Parameters
-
◆ Translate()
| void Axis2::Translate |
( |
const Vector2 & | t | ) |
|
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & | s, |
|
|
const Axis2 & | axis ) |
|
friend |