SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions | Variables
CoHMath.h File Reference
#include <glm/vec3.hpp>
#include <glm/mat3x3.hpp>
#include <glm/gtc/quaternion.hpp>
#include <glm/gtc/constants.hpp>
#include <algorithm>
Include dependency graph for CoHMath.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

glm::vec3 toCoH_YPR (const glm::quat &q)
 
glm::vec3 CoHYprFromMat (const glm::mat3 &mat)
 
glm::quat fromCoHYpr (glm::vec3 pyr)
 
glm::mat3 CoHYprToMat3 (glm::vec3 pyr)
 
float normalizeRadAngle (float ang)
 
uint32_t countBits (uint32_t val)
 
uint32_t AngleQuantize (float val, int numb_bits)
 

Variables

constexpr float F_PI = float(M_PI)
 

Function Documentation

uint32_t AngleQuantize ( float  val,
int  numb_bits 
)
inline

Here is the call graph for this function:

glm::vec3 CoHYprFromMat ( const glm::mat3 &  mat)
inline
glm::mat3 CoHYprToMat3 ( glm::vec3  pyr)
inline
uint32_t countBits ( uint32_t  val)
inline
glm::quat fromCoHYpr ( glm::vec3  pyr)
inline

Here is the caller graph for this function:

float normalizeRadAngle ( float  ang)
inline

Here is the caller graph for this function:

glm::vec3 toCoH_YPR ( const glm::quat &  q)
inline

Variable Documentation

constexpr float F_PI = float(M_PI)