Functions
tango_gl::util Namespace Reference

Functions

glm::vec3 ApplyTransform (const glm::mat4 &mat, const glm::vec3 &vec)
 
void CheckGlError (const char *operation)
 
float Clamp (float value, float min, float max)
 
GLuint CreateProgram (const char *vertex_source, const char *fragment_source)
 
void DecomposeMatrix (const glm::mat4 &transform_mat, glm::vec3 &translation, glm::quat &rotation, glm::vec3 &scale)
 
float DistanceSquared (const glm::vec3 &v1, const glm::vec3 &v2)
 
glm::vec3 GetColumnFromMatrix (const glm::mat4 &mat, const int col)
 
glm::vec3 GetTranslationFromMatrix (const glm::mat4 &mat)
 
glm::vec3 LerpVector (const glm::vec3 &x, const glm::vec3 &y, float a)
 
void PrintMatrix (const glm::mat4 &matrix)
 
void PrintQuaternion (const glm::quat &quat)
 
void PrintVector (const glm::vec3 &vector)
 
bool SegmentAABBIntersect (const glm::vec3 &aabb_min, const glm::vec3 &aabb_max, const glm::vec3 &start, const glm::vec3 &end)
 

Function Documentation

◆ ApplyTransform()

glm::vec3 tango_gl::util::ApplyTransform ( const glm::mat4 mat,
const glm::vec3 vec 
)

Definition at line 237 of file util.cpp.

◆ CheckGlError()

void tango_gl::util::CheckGlError ( const char *  operation)

Definition at line 43 of file util.cpp.

◆ Clamp()

float tango_gl::util::Clamp ( float  value,
float  min,
float  max 
)

Definition at line 165 of file util.cpp.

◆ CreateProgram()

GLuint tango_gl::util::CreateProgram ( const char *  vertex_source,
const char *  fragment_source 
)

Definition at line 75 of file util.cpp.

◆ DecomposeMatrix()

void tango_gl::util::DecomposeMatrix ( const glm::mat4 transform_mat,
glm::vec3 translation,
glm::quat rotation,
glm::vec3 scale 
)

Definition at line 115 of file util.cpp.

◆ DistanceSquared()

float tango_gl::util::DistanceSquared ( const glm::vec3 v1,
const glm::vec3 v2 
)

Definition at line 193 of file util.cpp.

◆ GetColumnFromMatrix()

glm::vec3 tango_gl::util::GetColumnFromMatrix ( const glm::mat4 mat,
const int  col 
)

Definition at line 157 of file util.cpp.

◆ GetTranslationFromMatrix()

glm::vec3 tango_gl::util::GetTranslationFromMatrix ( const glm::mat4 mat)

Definition at line 161 of file util.cpp.

◆ LerpVector()

glm::vec3 tango_gl::util::LerpVector ( const glm::vec3 x,
const glm::vec3 y,
float  a 
)

Definition at line 189 of file util.cpp.

◆ PrintMatrix()

void tango_gl::util::PrintMatrix ( const glm::mat4 matrix)

Definition at line 170 of file util.cpp.

◆ PrintQuaternion()

void tango_gl::util::PrintQuaternion ( const glm::quat quat)

Definition at line 184 of file util.cpp.

◆ PrintVector()

void tango_gl::util::PrintVector ( const glm::vec3 vector)

Definition at line 179 of file util.cpp.

◆ SegmentAABBIntersect()

bool tango_gl::util::SegmentAABBIntersect ( const glm::vec3 aabb_min,
const glm::vec3 aabb_max,
const glm::vec3 start,
const glm::vec3 end 
)

Definition at line 198 of file util.cpp.



rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Jan 23 2023 03:39:00