Wayverb
wayverb::core::orientation Class Referencefinal

Invariant: pointing_ is a unit vector. More...

#include <orientation.h>

Public Member Functions

 orientation (const glm::vec3 &pointing={0, 0,-1}, const glm::vec3 &up={0, 1, 0})
 
glm::vec3 get_pointing () const
 
void set_pointing (const glm::vec3 &u)
 
glm::vec3 get_up () const
 
void set_up (const glm::vec3 &u)
 
glm::mat4 get_matrix () const
 
template<typename Archive >
void serialize (Archive &)
 

Detailed Description

Invariant: pointing_ is a unit vector.

Re-writing at the last minute so that this uses a right-handed coordinate system, similar to OpenGL. Positive-y is up, positive-x is right, and negative-z is forwards. Yeah ugh idk.


The documentation for this class was generated from the following files: