Helios++
Helios software for LiDAR simulations
Vectorial.h
1 #pragma once
2 
3 #include <glm/glm.hpp>
4 
5 
9 class Vectorial{
10 public:
11  // *** CLASS METHODS *** //
12  // *********************** //
23  static double directionToAngleXY(glm::dvec3 const u, bool positive=true);
24 
33  static double shortestRotationSign(double theta);
34 
51  static double shortestRotationSign(double alpha, double beta);
52 
61  static double shortestRotationSignXY(
62  glm::dvec3 const u,
63  glm::dvec3 const v
64  );
65 };
Class to perform util vector operations.
Definition: Vectorial.h:9
static double shortestRotationSignXY(glm::dvec3 const u, glm::dvec3 const v)
Like the Vectorial::shortestRotationSign function but taking the angle from given normalized director...
Definition: Vectorial.cpp:23
static double directionToAngleXY(glm::dvec3 const u, bool positive=true)
Translate the normalized director vector to the angle it corresponds in range if positive is request...
Definition: Vectorial.cpp:4
static double shortestRotationSign(double theta)
Let theta be the difference between two angles, alpha and beta: . The sign of shortest rotation to go...
Definition: Vectorial.cpp:10