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>
radians (T degrees)
 
template<typename T = double>
degrees (T radians)
 
template<typename T = double>
sin (T radians)
 
template<typename T = double>
cos (T radians)
 
template<typename T = double>
tan (T radians)
 
template<typename T = double>
asin (T radians)
 
template<typename T = double>
acos (T radians)
 
template<typename T = double>
atan (T radians)
 
template<typename T = double>
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 ( 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 ( left,
right,
bottom,
top,
zNear,
zFar 
)
inline

Definition at line 81 of file Transform.inl.

◆ perspective()

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

Definition at line 95 of file Transform.inl.

◆ radians()

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

Definition at line 2 of file Trigonometry.inl.

◆ degrees()

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

Definition at line 8 of file Trigonometry.inl.

◆ sin()

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

Definition at line 14 of file Trigonometry.inl.

◆ cos()

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

Definition at line 19 of file Trigonometry.inl.

◆ tan()

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

Definition at line 24 of file Trigonometry.inl.

◆ asin()

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

Definition at line 29 of file Trigonometry.inl.

◆ acos()

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

Definition at line 34 of file Trigonometry.inl.

◆ atan()

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

Definition at line 39 of file Trigonometry.inl.

◆ atan2()

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

Definition at line 44 of file Trigonometry.inl.