Lugdunum  0.1.0
Functions
lug::Math::Geometry Namespace Reference

Functions

template<typename T >
Matrix< 4, 4, T > translate (const Vector< 3, T > &direction)
 
template<typename T >
Matrix< 4, 4, T > rotate (T angle, const Vector< 3, T > &axis)
 
template<typename T >
Matrix< 4, 4, T > scale (const Vector< 3, T > &factors)
 
template<typename T >
Matrix< 4, 4, T > lookAt (const Vector< 3, T > &eye, const Vector< 3, T > &center, const Vector< 3, T > &up)
 
template<typename T >
Matrix< 4, 4, T > ortho (T left, T right, T bottom, T top, T zNear, T zFar)
 
template<typename T >
Matrix< 4, 4, T > perspective (T fovy, T aspect, T zNear, T zFar)
 
template<typename T = double>
T radians (T degrees)
 
template<typename T = double>
T degrees (T radians)
 
template<typename T = double>
T sin (T radians)
 
template<typename T = double>
T cos (T radians)
 
template<typename T = double>
T tan (T radians)
 
template<typename T = double>
T asin (T radians)
 
template<typename T = double>
T acos (T radians)
 
template<typename T = double>
T atan (T radians)
 
template<typename T = double>
T atan2 (T y, T x)
 

Function Documentation

◆ translate()

template<typename T >
Matrix<4, 4, T> lug::Math::Geometry::translate ( const Vector< 3, T > &  direction)

◆ rotate()

template<typename T >
Matrix<4, 4, T> lug::Math::Geometry::rotate ( T  angle,
const Vector< 3, T > &  axis 
)

◆ scale()

template<typename T >
Matrix<4, 4, T> lug::Math::Geometry::scale ( const Vector< 3, T > &  factors)

◆ lookAt()

template<typename T >
Matrix<4, 4, T> lug::Math::Geometry::lookAt ( const Vector< 3, T > &  eye,
const Vector< 3, T > &  center,
const Vector< 3, T > &  up 
)

◆ ortho()

template<typename T >
Matrix<4, 4, T> lug::Math::Geometry::ortho ( T  left,
T  right,
T  bottom,
T  top,
T  zNear,
T  zFar 
)
inline

Definition at line 81 of file Transform.inl.

◆ perspective()

template<typename T >
Matrix<4, 4, T> lug::Math::Geometry::perspective ( T  fovy,
T  aspect,
T  zNear,
T  zFar 
)
inline

Definition at line 95 of file Transform.inl.

◆ radians()

template<typename T = double>
T lug::Math::Geometry::radians ( T  degrees)
inline

Definition at line 2 of file Trigonometry.inl.

◆ degrees()

template<typename T = double>
T lug::Math::Geometry::degrees ( T  radians)
inline

Definition at line 8 of file Trigonometry.inl.

◆ sin()

template<typename T = double>
T lug::Math::Geometry::sin ( T  radians)
inline

Definition at line 14 of file Trigonometry.inl.

◆ cos()

template<typename T = double>
T lug::Math::Geometry::cos ( T  radians)
inline

Definition at line 19 of file Trigonometry.inl.

◆ tan()

template<typename T = double>
T lug::Math::Geometry::tan ( T  radians)
inline

Definition at line 24 of file Trigonometry.inl.

◆ asin()

template<typename T = double>
T lug::Math::Geometry::asin ( T  radians)
inline

Definition at line 29 of file Trigonometry.inl.

◆ acos()

template<typename T = double>
T lug::Math::Geometry::acos ( T  radians)
inline

Definition at line 34 of file Trigonometry.inl.

◆ atan()

template<typename T = double>
T lug::Math::Geometry::atan ( T  radians)
inline

Definition at line 39 of file Trigonometry.inl.

◆ atan2()

template<typename T = double>
T lug::Math::Geometry::atan2 ( T  y,
T  x 
)
inline

Definition at line 44 of file Trigonometry.inl.