A base for a plane in space. More...
#include <Decomposer.h>
Public Types | |
using | Vector_t = Vector |
Type for the vector in space. More... | |
Public Member Functions | |
PlaneBase (Vector_t const &main, Vector_t const &secondary) | |
Constructor: assigns the axes. More... | |
Vector_t const & | MainDir () const |
Returns the main axis direction. More... | |
Vector_t const & | SecondaryDir () const |
Returns the secondary axis direction. More... | |
Vector_t const & | NormalDir () const |
Returns the axis normal to the plane. More... | |
void | SetMainDir (Vector_t const &dir) |
Change the main direction of the projection base. More... | |
void | SetSecondaryDir (Vector_t const &dir) |
Change the secondary direction of the projection base. More... | |
Static Public Member Functions | |
static Vector_t | PastorizeUnitVector (Vector_t dir) |
Normalizes and rounds a direction vector. More... | |
Static Public Attributes | |
static constexpr double | RoundingTol = 1e-4 |
Rounding threshold for vectors. More... | |
Private Member Functions | |
Vector_t | ComputeNormal () const |
Computes the normal to the plane. More... | |
void | ResetNormal () |
Reset normal to the plane. More... | |
Private Attributes | |
Vector_t | fMain |
Main axis on the plane. More... | |
Vector_t | fSecondary |
Secondary axis on the plane. More... | |
Vector_t | fNormal |
Axis normal to the plane. More... | |
A base for a plane in space.
The base contains the two axes, a "main" one ( ) and a "secondary" one ( ). It also defines a normal ( ) to the plane so that the base is positive defined (( ).
Definition at line 39 of file Decomposer.h.
using geo::PlaneBase< Vector >::Vector_t = Vector |
Type for the vector in space.
Definition at line 41 of file Decomposer.h.
|
inline |
Constructor: assigns the axes.
Definition at line 47 of file Decomposer.h.
|
inlineprivate |
Computes the normal to the plane.
Definition at line 80 of file Decomposer.h.
|
inline |
|
inline |
|
inlinestatic |
Normalizes and rounds a direction vector.
Definition at line 71 of file Decomposer.h.
|
inlineprivate |
Reset normal to the plane.
Definition at line 84 of file Decomposer.h.
|
inline |
Returns the secondary axis direction.
Definition at line 57 of file Decomposer.h.
|
inline |
|
inline |
Change the secondary direction of the projection base.
Definition at line 66 of file Decomposer.h.
|
private |
Main axis on the plane.
Definition at line 75 of file Decomposer.h.
|
private |
Axis normal to the plane.
Definition at line 77 of file Decomposer.h.
|
private |
Secondary axis on the plane.
Definition at line 76 of file Decomposer.h.
|
static |
Rounding threshold for vectors.
Definition at line 44 of file Decomposer.h.