Antkeeper  0.0.1
Functions
transform-operators.hpp File Reference
#include <engine/math/transform-type.hpp>
#include <engine/math/transform-functions.hpp>

Go to the source code of this file.

Functions

template<class T >
math::transform< T > operator* (const math::transform< T > &x, const math::transform< T > &y)
 Multiplies two transforms. More...
 
template<class T >
math::vector< T, 3 > operator* (const math::transform< T > &t, const math::vector< T, 3 > &v)
 Multiplies a vector by a transform. More...
 
template<class T >
math::transform< T > & operator*= (math::transform< T > &x, const math::transform< T > &y)
 Multiplies two transforms and stores the result in the first transform. More...
 
template<class T >
math::transform< T > & operator*= (math::transform< T > &x, const math::vector< T, 3 > &y)
 

Function Documentation

◆ operator*() [1/2]

template<class T >
math::vector< T, 3 > operator* ( const math::transform< T > &  t,
const math::vector< T, 3 > &  v 
)
inline

Multiplies a vector by a transform.

Parameters
tTransform.
vVector.
Returns
Product of the transform and vector.

Definition at line 51 of file transform-operators.hpp.

◆ operator*() [2/2]

template<class T >
math::transform< T > operator* ( const math::transform< T > &  x,
const math::transform< T > &  y 
)
inline

Multiplies two transforms.

Parameters
xFirst transform.
ySecond transform.
Returns
Product of the two transforms.

Definition at line 45 of file transform-operators.hpp.

◆ operator*=() [1/2]

template<class T >
math::transform<T>& operator*= ( math::transform< T > &  x,
const math::transform< T > &  y 
)

Multiplies two transforms and stores the result in the first transform.

Parameters
xFirst transform.
ySecond transform.
Returns
Reference to the first transform.

◆ operator*=() [2/2]

template<class T >
math::transform<T>& operator*= ( math::transform< T > &  x,
const math::vector< T, 3 > &  y 
)
inline

Definition at line 57 of file transform-operators.hpp.