Unravel Engine C++ Reference
Loading...
Searching...
No Matches
gml Namespace Reference

Namespaces

namespace  detail
 

Functions

template<typename T >
angle (const glm::tvec2< T > &v1, const glm::tvec2< T > &v2)
 
template<typename T >
angle (const glm::tvec3< T > &v1, const glm::tvec3< T > &v2)
 
template<typename T >
glm::tvec2< T > cross (const glm::tvec2< T > &v)
 
template<typename T >
glm::tvec3< T > transform (const glm::tquat< T > &q, const glm::tvec3< T > &v)
 
template<typename T >
glm::tquat< T > qrotate (const T &angle, const glm::tvec3< T > &axis)
 
template<typename T >
glm::tvec3< T > normal (const glm::tvec3< T > &p1, const glm::tvec3< T > &p2, const glm::tvec3< T > &p3)
 
template<typename T , typename TI , typename TS >
glm::tvec3< T > project (const glm::tvec3< T > &v, const glm::tmat4x4< T > &modelViewProj, const glm::tvec2< TI > &viewportOrigin, const glm::tvec2< TS > &viewportSize)
 
template<typename T >
glm::tmat4x4< T > ortho2D (const T &left, const T &right, const T &bottom, const T &top)
 
template<typename T >
glm::tvec3< T > slerp (const glm::tvec3< T > &v1, const glm::tvec3< T > &v2, const T &a)
 
template<typename T >
glm::tmat4x4< T > rotate (const glm::tvec3< T > &angle)
 
template<typename T >
glm::tmat3x3< T > rotate (const T &angle)
 
template<typename T >
glm::tvec2< T > transform (const glm::tmat3x3< T > &m, const glm::tvec2< T > &v)
 
template<int D, typename T >
glm::tvec2< T > bezier (const glm::tvec2< T >(&p)[D], T t)
 
template<int D, typename T >
glm::tvec3< T > bezier (const glm::tvec3< T >(&p)[D], T t)
 
template<int D0, int D1, typename T >
glm::tvec3< T > bezier2 (const glm::tvec3< T >(&p)[D1][D0], const glm::tvec2< T > &t)
 
template<int O, int D, typename T >
glm::tvec2< T > bezierDerivative (const glm::tvec2< T >(&p)[D], T t)
 
template<int O, int D, typename T >
glm::tvec3< T > bezierDerivative (const glm::tvec3< T >(&p)[D], T t)
 
template<int O, int D0, int D1, typename T >
glm::tmat2x3< T > bezier2Jacobian (const glm::tvec3< T >(&p)[D1][D0], const glm::tvec2< T > &t)
 

Function Documentation

◆ angle() [1/2]

template<typename T >
T gml::angle ( const glm::tvec2< T > & v1,
const glm::tvec2< T > & v2 )

Definition at line 82 of file math.hpp.

◆ angle() [2/2]

template<typename T >
T gml::angle ( const glm::tvec3< T > & v1,
const glm::tvec3< T > & v2 )

Definition at line 95 of file math.hpp.

◆ bezier() [1/2]

template<int D, typename T >
glm::tvec2< T > gml::bezier ( const glm::tvec2< T >(&) p[D],
T t )

Definition at line 243 of file math.hpp.

◆ bezier() [2/2]

template<int D, typename T >
glm::tvec3< T > gml::bezier ( const glm::tvec3< T >(&) p[D],
T t )

Definition at line 250 of file math.hpp.

◆ bezier2()

template<int D0, int D1, typename T >
glm::tvec3< T > gml::bezier2 ( const glm::tvec3< T >(&) p[D1][D0],
const glm::tvec2< T > & t )

Definition at line 257 of file math.hpp.

◆ bezier2Jacobian()

template<int O, int D0, int D1, typename T >
glm::tmat2x3< T > gml::bezier2Jacobian ( const glm::tvec3< T >(&) p[D1][D0],
const glm::tvec2< T > & t )

Definition at line 333 of file math.hpp.

◆ bezierDerivative() [1/2]

template<int O, int D, typename T >
glm::tvec2< T > gml::bezierDerivative ( const glm::tvec2< T >(&) p[D],
T t )

Definition at line 317 of file math.hpp.

◆ bezierDerivative() [2/2]

template<int O, int D, typename T >
glm::tvec3< T > gml::bezierDerivative ( const glm::tvec3< T >(&) p[D],
T t )

Definition at line 325 of file math.hpp.

◆ cross()

template<typename T >
glm::tvec2< T > gml::cross ( const glm::tvec2< T > & v)

Definition at line 108 of file math.hpp.

◆ normal()

template<typename T >
glm::tvec3< T > gml::normal ( const glm::tvec3< T > & p1,
const glm::tvec3< T > & p2,
const glm::tvec3< T > & p3 )

Definition at line 131 of file math.hpp.

◆ ortho2D()

template<typename T >
glm::tmat4x4< T > gml::ortho2D ( const T & left,
const T & right,
const T & bottom,
const T & top )

Definition at line 161 of file math.hpp.

◆ project()

template<typename T , typename TI , typename TS >
glm::tvec3< T > gml::project ( const glm::tvec3< T > & v,
const glm::tmat4x4< T > & modelViewProj,
const glm::tvec2< TI > & viewportOrigin,
const glm::tvec2< TS > & viewportSize )

Definition at line 137 of file math.hpp.

◆ qrotate()

template<typename T >
glm::tquat< T > gml::qrotate ( const T & angle,
const glm::tvec3< T > & axis )

Definition at line 121 of file math.hpp.

◆ rotate() [1/2]

template<typename T >
glm::tmat4x4< T > gml::rotate ( const glm::tvec3< T > & angle)

Definition at line 176 of file math.hpp.

◆ rotate() [2/2]

template<typename T >
glm::tmat3x3< T > gml::rotate ( const T & angle)

Definition at line 208 of file math.hpp.

◆ slerp()

template<typename T >
glm::tvec3< T > gml::slerp ( const glm::tvec3< T > & v1,
const glm::tvec3< T > & v2,
const T & a )

Definition at line 167 of file math.hpp.

◆ transform() [1/2]

template<typename T >
glm::tvec2< T > gml::transform ( const glm::tmat3x3< T > & m,
const glm::tvec2< T > & v )

Definition at line 222 of file math.hpp.

◆ transform() [2/2]

template<typename T >
glm::tvec3< T > gml::transform ( const glm::tquat< T > & q,
const glm::tvec3< T > & v )

Definition at line 114 of file math.hpp.