PeriDyno 1.0.0
Loading...
Searching...
No Matches
vgm Namespace Reference

Classes

class  Mat3
 
class  Mat4
 
class  Quat
 
class  Vec2
 
class  Vec3
 
class  Vec4
 

Functions

TEMPLATE_TYPENAME_T MAT3_T mat3_cast (QUAT_T const &q)
 
TEMPLATE_TYPENAME_T MAT4_T mat4_cast (QUAT_T const &q)
 
float uintBitsToFloat (uint32_t const v)
 
uint32_t floatBitsToUint (float const v)
 
TEMPLATE_TYPENAME_T T dot (const VEC2_T &v0, const VEC2_T &v1)
 
TEMPLATE_TYPENAME_T T dot (const VEC3_T &v0, const VEC3_T &v1)
 
TEMPLATE_TYPENAME_T T dot (const VEC4_T &v0, const VEC4_T &v1)
 
TEMPLATE_TYPENAME_T T dot (const QUAT_T &q0, const QUAT_T &q1)
 
TEMPLATE_TYPENAME_T T cross (const VEC2_T &u, const VEC2_T &v)
 
TEMPLATE_TYPENAME_T VEC3_T cross (const VEC3_T &u, const VEC3_T &v)
 
TEMPLATE_TYPENAME_T T length (const VEC2_T &v)
 
TEMPLATE_TYPENAME_T T length (const VEC3_T &v)
 
TEMPLATE_TYPENAME_T T length (const VEC4_T &v)
 
TEMPLATE_TYPENAME_T T length (const QUAT_T &q)
 
TEMPLATE_TYPENAME_T T distance (const VEC2_T &v0, const VEC2_T &v1)
 
TEMPLATE_TYPENAME_T T distance (const VEC3_T &v0, const VEC3_T &v1)
 
TEMPLATE_TYPENAME_T T distance (const VEC4_T &v0, const VEC4_T &v1)
 
TEMPLATE_TYPENAME_T T tAbs (T x)
 
TEMPLATE_TYPENAME_T VEC2_T abs (const VEC2_T &v)
 
TEMPLATE_TYPENAME_T VEC3_T abs (const VEC3_T &v)
 
TEMPLATE_TYPENAME_T VEC4_T abs (const VEC4_T &v)
 
TEMPLATE_TYPENAME_T QUAT_T abs (const QUAT_T &q)
 
TEMPLATE_TYPENAME_T T sign (const T v)
 
TEMPLATE_TYPENAME_T VEC2_T normalize (const VEC2_T &v)
 
TEMPLATE_TYPENAME_T VEC3_T normalize (const VEC3_T &v)
 
TEMPLATE_TYPENAME_T VEC4_T normalize (const VEC4_T &v)
 
TEMPLATE_TYPENAME_T QUAT_T normalize (const QUAT_T &q)
 
TEMPLATE_TYPENAME_T T mix (const T x, const T y, const T a)
 
TEMPLATE_TYPENAME_T VEC2_T mix (const VEC2_T &x, const VEC2_T &y, const T a)
 
TEMPLATE_TYPENAME_T VEC3_T mix (const VEC3_T &x, const VEC3_T &y, const T a)
 
TEMPLATE_TYPENAME_T VEC4_T mix (const VEC4_T &x, const VEC4_T &y, const T a)
 
TEMPLATE_TYPENAME_T VEC2_T pow (const VEC2_T &b, const VEC2_T &e)
 
TEMPLATE_TYPENAME_T VEC3_T pow (const VEC3_T &b, const VEC3_T &e)
 
TEMPLATE_TYPENAME_T VEC4_T pow (const VEC4_T &b, const VEC4_T &e)
 
TEMPLATE_TYPENAME_T Tvalue_ptr (const VEC2_T &v)
 
TEMPLATE_TYPENAME_T Tvalue_ptr (const VEC3_T &v)
 
TEMPLATE_TYPENAME_T Tvalue_ptr (const VEC4_T &v)
 
TEMPLATE_TYPENAME_T Tvalue_ptr (const QUAT_T &q)
 
TEMPLATE_TYPENAME_T Tvalue_ptr (const MAT3_T &m)
 
TEMPLATE_TYPENAME_T Tvalue_ptr (const MAT4_T &m)
 
TEMPLATE_TYPENAME_T MAT3_T transpose (MAT3_T m)
 
TEMPLATE_TYPENAME_T MAT4_T transpose (MAT4_T m)
 
TEMPLATE_TYPENAME_T QUAT_T inverse (QUAT_T const &q)
 
TEMPLATE_TYPENAME_T MAT3_T inverse (MAT3_T const &m)
 
TEMPLATE_TYPENAME_T MAT4_T inverse (MAT4_T const &m)
 
TEMPLATE_TYPENAME_T VEC2_T operator* (const T s, const VEC2_T &v)
 
TEMPLATE_TYPENAME_T VEC3_T operator* (const T s, const VEC3_T &v)
 
TEMPLATE_TYPENAME_T VEC4_T operator* (const T s, const VEC4_T &v)
 
TEMPLATE_TYPENAME_T QUAT_T operator* (const T s, const QUAT_T &q)
 
TEMPLATE_TYPENAME_T VEC2_T operator/ (const T s, const VEC2_T &v)
 
TEMPLATE_TYPENAME_T VEC3_T operator/ (const T s, const VEC3_T &v)
 
TEMPLATE_TYPENAME_T VEC4_T operator/ (const T s, const VEC4_T &v)
 
TEMPLATE_TYPENAME_T QUAT_T operator/ (const T s, const QUAT_T &q)
 
TEMPLATE_TYPENAME_T VEC3_T operator* (const QUAT_T &q, const VEC3_T &v)
 
TEMPLATE_TYPENAME_T VEC3_T operator* (const VEC3_T &v, const QUAT_T &q)
 
TEMPLATE_TYPENAME_T MAT4_T translate (MAT4_T const &m, VEC3_T const &v)
 
TEMPLATE_TYPENAME_T MAT4_T scale (MAT4_T const &m, VEC3_T const &v)
 
TEMPLATE_TYPENAME_T QUAT_T angleAxis (T const &a, VEC3_T const &v)
 
TEMPLATE_TYPENAME_T T angle (QUAT_T const &q)
 
TEMPLATE_TYPENAME_T VEC3_T axis (QUAT_T const &q)
 
TEMPLATE_TYPENAME_T T radians (T d)
 
TEMPLATE_TYPENAME_T T degrees (T r)
 
TEMPLATE_TYPENAME_T T pi ()
 
TEMPLATE_TYPENAME_T T one_over_pi ()
 
TEMPLATE_TYPENAME_T MAT4_T lookAt (const VEC3_T &pov, const VEC3_T &tgt, const VEC3_T &up)
 
TEMPLATE_TYPENAME_T MAT4_T ortho (T l, T r, T b, T t, T n, T f)
 
TEMPLATE_TYPENAME_T MAT4_T perspective (T fovy, T a, T n, T f)
 
TEMPLATE_TYPENAME_T MAT4_T perspectiveFov (T fovy, T w, T h, T n, T f)
 
TEMPLATE_TYPENAME_T MAT4_T frustum (T l, T r, T b, T t, T n, T f)
 

Function Documentation

◆ abs() [1/4]

TEMPLATE_TYPENAME_T QUAT_T vgm::abs ( const QUAT_T & q)
inline

Definition at line 415 of file vgMath.h.

Here is the call graph for this function:

◆ abs() [2/4]

TEMPLATE_TYPENAME_T VEC2_T vgm::abs ( const VEC2_T & v)
inline

Definition at line 412 of file vgMath.h.

Here is the call graph for this function:

◆ abs() [3/4]

TEMPLATE_TYPENAME_T VEC3_T vgm::abs ( const VEC3_T & v)
inline

Definition at line 413 of file vgMath.h.

Here is the call graph for this function:

◆ abs() [4/4]

TEMPLATE_TYPENAME_T VEC4_T vgm::abs ( const VEC4_T & v)
inline

Definition at line 414 of file vgMath.h.

Here is the call graph for this function:

◆ angle()

TEMPLATE_TYPENAME_T T vgm::angle ( QUAT_T const & q)
inline

Definition at line 511 of file vgMath.h.

◆ angleAxis()

TEMPLATE_TYPENAME_T QUAT_T vgm::angleAxis ( T const & a,
VEC3_T const & v )
inline

Definition at line 510 of file vgMath.h.

◆ axis()

TEMPLATE_TYPENAME_T VEC3_T vgm::axis ( QUAT_T const & q)
inline

Definition at line 512 of file vgMath.h.

◆ cross() [1/2]

TEMPLATE_TYPENAME_T T vgm::cross ( const VEC2_T & u,
const VEC2_T & v )
inline

Definition at line 396 of file vgMath.h.

Here is the caller graph for this function:

◆ cross() [2/2]

TEMPLATE_TYPENAME_T VEC3_T vgm::cross ( const VEC3_T & u,
const VEC3_T & v )
inline

Definition at line 397 of file vgMath.h.

◆ degrees()

TEMPLATE_TYPENAME_T T vgm::degrees ( T r)
inline

Definition at line 518 of file vgMath.h.

◆ distance() [1/3]

TEMPLATE_TYPENAME_T T vgm::distance ( const VEC2_T & v0,
const VEC2_T & v1 )
inline

Definition at line 406 of file vgMath.h.

Here is the call graph for this function:

◆ distance() [2/3]

TEMPLATE_TYPENAME_T T vgm::distance ( const VEC3_T & v0,
const VEC3_T & v1 )
inline

Definition at line 407 of file vgMath.h.

Here is the call graph for this function:

◆ distance() [3/3]

TEMPLATE_TYPENAME_T T vgm::distance ( const VEC4_T & v0,
const VEC4_T & v1 )
inline

Definition at line 408 of file vgMath.h.

Here is the call graph for this function:

◆ dot() [1/4]

TEMPLATE_TYPENAME_T T vgm::dot ( const QUAT_T & q0,
const QUAT_T & q1 )
inline

Definition at line 393 of file vgMath.h.

◆ dot() [2/4]

TEMPLATE_TYPENAME_T T vgm::dot ( const VEC2_T & v0,
const VEC2_T & v1 )
inline

Definition at line 390 of file vgMath.h.

Here is the caller graph for this function:

◆ dot() [3/4]

TEMPLATE_TYPENAME_T T vgm::dot ( const VEC3_T & v0,
const VEC3_T & v1 )
inline

Definition at line 391 of file vgMath.h.

◆ dot() [4/4]

TEMPLATE_TYPENAME_T T vgm::dot ( const VEC4_T & v0,
const VEC4_T & v1 )
inline

Definition at line 392 of file vgMath.h.

◆ floatBitsToUint()

uint32_t vgm::floatBitsToUint ( float const v)
inline

Definition at line 387 of file vgMath.h.

◆ frustum()

TEMPLATE_TYPENAME_T MAT4_T vgm::frustum ( T l,
T r,
T b,
T t,
T n,
T f )
inline

Definition at line 567 of file vgMath.h.

◆ inverse() [1/3]

TEMPLATE_TYPENAME_T MAT3_T vgm::inverse ( MAT3_T const & m)
inline

Definition at line 459 of file vgMath.h.

◆ inverse() [2/3]

TEMPLATE_TYPENAME_T MAT4_T vgm::inverse ( MAT4_T const & m)
inline

Definition at line 464 of file vgMath.h.

◆ inverse() [3/3]

TEMPLATE_TYPENAME_T QUAT_T vgm::inverse ( QUAT_T const & q)
inline

Definition at line 458 of file vgMath.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ length() [1/4]

TEMPLATE_TYPENAME_T T vgm::length ( const QUAT_T & q)
inline

Definition at line 403 of file vgMath.h.

Here is the call graph for this function:

◆ length() [2/4]

TEMPLATE_TYPENAME_T T vgm::length ( const VEC2_T & v)
inline

Definition at line 400 of file vgMath.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ length() [3/4]

TEMPLATE_TYPENAME_T T vgm::length ( const VEC3_T & v)
inline

Definition at line 401 of file vgMath.h.

Here is the call graph for this function:

◆ length() [4/4]

TEMPLATE_TYPENAME_T T vgm::length ( const VEC4_T & v)
inline

Definition at line 402 of file vgMath.h.

Here is the call graph for this function:

◆ lookAt()

TEMPLATE_TYPENAME_T MAT4_T vgm::lookAt ( const VEC3_T & pov,
const VEC3_T & tgt,
const VEC3_T & up )
inline

Definition at line 524 of file vgMath.h.

Here is the call graph for this function:

◆ mat3_cast()

TEMPLATE_TYPENAME_T MAT3_T vgm::mat3_cast ( QUAT_T const & q)
inline

Definition at line 377 of file vgMath.h.

Here is the caller graph for this function:

◆ mat4_cast()

TEMPLATE_TYPENAME_T MAT4_T vgm::mat4_cast ( QUAT_T const & q)
inline

Definition at line 385 of file vgMath.h.

Here is the call graph for this function:

◆ mix() [1/4]

TEMPLATE_TYPENAME_T T vgm::mix ( const T x,
const T y,
const T a )
inline

Definition at line 427 of file vgMath.h.

◆ mix() [2/4]

TEMPLATE_TYPENAME_T VEC2_T vgm::mix ( const VEC2_T & x,
const VEC2_T & y,
const T a )
inline

Definition at line 428 of file vgMath.h.

◆ mix() [3/4]

TEMPLATE_TYPENAME_T VEC3_T vgm::mix ( const VEC3_T & x,
const VEC3_T & y,
const T a )
inline

Definition at line 429 of file vgMath.h.

◆ mix() [4/4]

TEMPLATE_TYPENAME_T VEC4_T vgm::mix ( const VEC4_T & x,
const VEC4_T & y,
const T a )
inline

Definition at line 430 of file vgMath.h.

◆ normalize() [1/4]

TEMPLATE_TYPENAME_T QUAT_T vgm::normalize ( const QUAT_T & q)
inline

Definition at line 424 of file vgMath.h.

Here is the call graph for this function:

◆ normalize() [2/4]

TEMPLATE_TYPENAME_T VEC2_T vgm::normalize ( const VEC2_T & v)
inline

Definition at line 421 of file vgMath.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ normalize() [3/4]

TEMPLATE_TYPENAME_T VEC3_T vgm::normalize ( const VEC3_T & v)
inline

Definition at line 422 of file vgMath.h.

Here is the call graph for this function:

◆ normalize() [4/4]

TEMPLATE_TYPENAME_T VEC4_T vgm::normalize ( const VEC4_T & v)
inline

Definition at line 423 of file vgMath.h.

Here is the call graph for this function:

◆ one_over_pi()

TEMPLATE_TYPENAME_T T vgm::one_over_pi ( )
inline

Definition at line 520 of file vgMath.h.

◆ operator*() [1/6]

TEMPLATE_TYPENAME_T VEC3_T vgm::operator* ( const QUAT_T & q,
const VEC3_T & v )
inline

Definition at line 497 of file vgMath.h.

Here is the call graph for this function:

◆ operator*() [2/6]

TEMPLATE_TYPENAME_T QUAT_T vgm::operator* ( const T s,
const QUAT_T & q )
inline

Definition at line 490 of file vgMath.h.

◆ operator*() [3/6]

TEMPLATE_TYPENAME_T VEC2_T vgm::operator* ( const T s,
const VEC2_T & v )
inline

Definition at line 487 of file vgMath.h.

◆ operator*() [4/6]

TEMPLATE_TYPENAME_T VEC3_T vgm::operator* ( const T s,
const VEC3_T & v )
inline

Definition at line 488 of file vgMath.h.

◆ operator*() [5/6]

TEMPLATE_TYPENAME_T VEC4_T vgm::operator* ( const T s,
const VEC4_T & v )
inline

Definition at line 489 of file vgMath.h.

◆ operator*() [6/6]

TEMPLATE_TYPENAME_T VEC3_T vgm::operator* ( const VEC3_T & v,
const QUAT_T & q )
inline

Definition at line 500 of file vgMath.h.

Here is the call graph for this function:

◆ operator/() [1/4]

TEMPLATE_TYPENAME_T QUAT_T vgm::operator/ ( const T s,
const QUAT_T & q )
inline

Definition at line 495 of file vgMath.h.

◆ operator/() [2/4]

TEMPLATE_TYPENAME_T VEC2_T vgm::operator/ ( const T s,
const VEC2_T & v )
inline

Definition at line 492 of file vgMath.h.

◆ operator/() [3/4]

TEMPLATE_TYPENAME_T VEC3_T vgm::operator/ ( const T s,
const VEC3_T & v )
inline

Definition at line 493 of file vgMath.h.

◆ operator/() [4/4]

TEMPLATE_TYPENAME_T VEC4_T vgm::operator/ ( const T s,
const VEC4_T & v )
inline

Definition at line 494 of file vgMath.h.

◆ ortho()

TEMPLATE_TYPENAME_T MAT4_T vgm::ortho ( T l,
T r,
T b,
T t,
T n,
T f )
inline

Definition at line 537 of file vgMath.h.

◆ perspective()

TEMPLATE_TYPENAME_T MAT4_T vgm::perspective ( T fovy,
T a,
T n,
T f )
inline

Definition at line 550 of file vgMath.h.

Here is the caller graph for this function:

◆ perspectiveFov()

TEMPLATE_TYPENAME_T MAT4_T vgm::perspectiveFov ( T fovy,
T w,
T h,
T n,
T f )
inline

Definition at line 564 of file vgMath.h.

Here is the call graph for this function:

◆ pi()

TEMPLATE_TYPENAME_T T vgm::pi ( )
inline

Definition at line 519 of file vgMath.h.

◆ pow() [1/3]

TEMPLATE_TYPENAME_T VEC2_T vgm::pow ( const VEC2_T & b,
const VEC2_T & e )
inline

Definition at line 433 of file vgMath.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pow() [2/3]

TEMPLATE_TYPENAME_T VEC3_T vgm::pow ( const VEC3_T & b,
const VEC3_T & e )
inline

Definition at line 434 of file vgMath.h.

Here is the call graph for this function:

◆ pow() [3/3]

TEMPLATE_TYPENAME_T VEC4_T vgm::pow ( const VEC4_T & b,
const VEC4_T & e )
inline

Definition at line 435 of file vgMath.h.

Here is the call graph for this function:

◆ radians()

TEMPLATE_TYPENAME_T T vgm::radians ( T d)
inline

Definition at line 517 of file vgMath.h.

◆ scale()

TEMPLATE_TYPENAME_T MAT4_T vgm::scale ( MAT4_T const & m,
VEC3_T const & v )
inline

Definition at line 506 of file vgMath.h.

◆ sign()

TEMPLATE_TYPENAME_T T vgm::sign ( const T v)
inline

Definition at line 418 of file vgMath.h.

◆ tAbs()

TEMPLATE_TYPENAME_T T vgm::tAbs ( T x)
inline

Definition at line 411 of file vgMath.h.

Here is the caller graph for this function:

◆ translate()

TEMPLATE_TYPENAME_T MAT4_T vgm::translate ( MAT4_T const & m,
VEC3_T const & v )
inline

Definition at line 503 of file vgMath.h.

◆ transpose() [1/2]

TEMPLATE_TYPENAME_T MAT3_T vgm::transpose ( MAT3_T m)
inline

Definition at line 446 of file vgMath.h.

◆ transpose() [2/2]

TEMPLATE_TYPENAME_T MAT4_T vgm::transpose ( MAT4_T m)
inline

Definition at line 450 of file vgMath.h.

◆ uintBitsToFloat()

float vgm::uintBitsToFloat ( uint32_t const v)
inline

Definition at line 386 of file vgMath.h.

◆ value_ptr() [1/6]

TEMPLATE_TYPENAME_T T * vgm::value_ptr ( const MAT3_T & m)
inline

Definition at line 442 of file vgMath.h.

◆ value_ptr() [2/6]

TEMPLATE_TYPENAME_T T * vgm::value_ptr ( const MAT4_T & m)
inline

Definition at line 443 of file vgMath.h.

◆ value_ptr() [3/6]

TEMPLATE_TYPENAME_T T * vgm::value_ptr ( const QUAT_T & q)
inline

Definition at line 441 of file vgMath.h.

◆ value_ptr() [4/6]

TEMPLATE_TYPENAME_T T * vgm::value_ptr ( const VEC2_T & v)
inline

Definition at line 438 of file vgMath.h.

◆ value_ptr() [5/6]

TEMPLATE_TYPENAME_T T * vgm::value_ptr ( const VEC3_T & v)
inline

Definition at line 439 of file vgMath.h.

◆ value_ptr() [6/6]

TEMPLATE_TYPENAME_T T * vgm::value_ptr ( const VEC4_T & v)
inline

Definition at line 440 of file vgMath.h.