|
static double | directionToAngleXY (glm::dvec3 const u, bool positive=true) |
| Translate the normalized director vector to the angle it corresponds in range \([0, 2\pi)\) if positive is requested, in range \([-pi, pi]\) otherwise. More...
|
|
static double | shortestRotationSign (double theta) |
| Let theta be the difference between two angles, alpha and beta: \(\theta = \beta - \alpha\). The sign of shortest rotation to go from beta to alpha is computed by this function. More...
|
|
static double | shortestRotationSign (double alpha, double beta) |
| Obtain the sign which minimizes the rotation magnitude to go from alpha to beta. More...
|
|
static double | shortestRotationSignXY (glm::dvec3 const u, glm::dvec3 const v) |
| Like the Vectorial::shortestRotationSign function but taking the angle from given normalized director vectors over XY. More...
|
|
Class to perform util vector operations.
double Vectorial::directionToAngleXY |
( |
glm::dvec3 const |
u, |
|
|
bool |
positive = true |
|
) |
| |
|
static |
Translate the normalized director vector to the angle it corresponds in range \([0, 2\pi)\) if positive is requested, in range \([-pi, pi]\) otherwise.
For this purpose, only X and Y components are considered.
- Parameters
-
u | Director to be translated to angle over XY |
- Returns
- Angle in range over XY for given director vector