Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | List of all members
om::math::Swizzle3D< T, dimension, i0, i1, i1 > Class Template Reference

A class that is used to implement arbitrary vector permutations. More...

#include <omVector3D.h>

Public Member Functions

 operator VectorND< T, 3 > () const
 Convert this swizzle permutation to a vector. More...
 
VectorND< T, 3 > & operator= (T value)
 Assign a vector to this swizzle permutation. More...
 
VectorND< T, 3 > operator+ (T scalar) const
 Add a scalar to this swizzle permutation and return the result. More...
 
VectorND< T, 3 > operator- (T scalar) const
 Subtract a scalar from this swizzle permutation and return the result. More...
 
VectorND< T, 3 > operator* (T scalar) const
 Multiply this swizzle permutation by a scalar and return the result. More...
 
VectorND< T, 3 > operator/ (T scalar) const
 Divide this swizzle permutation by a scalar and return the result. More...
 
VectorND< T, 3 > operator+ (const VectorND< T, 3 > &other) const
 Add a vector to this swizzle permutation and return the result. More...
 
VectorND< T, 3 > operator- (const VectorND< T, 3 > &other) const
 Subtract a vector from this swizzle permutation and return the result. More...
 
VectorND< T, 3 > operator* (const VectorND< T, 3 > &other) const
 Multiply this swizzle permutation by another vector and return the result. More...
 
VectorND< T, 3 > operator/ (const VectorND< T, 3 > &other) const
 Divide this swizzle permutation by another vector and return the result. More...
 
VectorND< T, 3 > & operator+= (T value)
 Add a vector to this swizzle permutation. More...
 
VectorND< T, 3 > & operator-= (T value)
 Subtract a vector from this swizzle permutation. More...
 
VectorND< T, 3 > & operator*= (T value)
 Multiply this swizzle permutation by another vector. More...
 
VectorND< T, 3 > & operator/= (T value)
 Divide this swizzle permutation by another vector. More...
 
 operator data::String () const
 Convert this vector permutation to a string representation. More...
 

Detailed Description

template<typename T, Index dimension, Index i0, Index i1>
class om::math::Swizzle3D< T, dimension, i0, i1, i1 >

A class that is used to implement arbitrary vector permutations.

Member Function Documentation

template<typename T , Index dimension, Index i0, Index i1>
om::math::Swizzle3D< T, dimension, i0, i1, i1 >::operator VectorND< T, 3 > ( ) const
inline

Convert this swizzle permutation to a vector.

template<typename T , Index dimension, Index i0, Index i1>
VectorND<T,3>& om::math::Swizzle3D< T, dimension, i0, i1, i1 >::operator= ( value)
inline

Assign a vector to this swizzle permutation.

template<typename T , Index dimension, Index i0, Index i1>
VectorND<T,3> om::math::Swizzle3D< T, dimension, i0, i1, i1 >::operator+ ( scalar) const
inline

Add a scalar to this swizzle permutation and return the result.

template<typename T , Index dimension, Index i0, Index i1>
VectorND<T,3> om::math::Swizzle3D< T, dimension, i0, i1, i1 >::operator- ( scalar) const
inline

Subtract a scalar from this swizzle permutation and return the result.

template<typename T , Index dimension, Index i0, Index i1>
VectorND<T,3> om::math::Swizzle3D< T, dimension, i0, i1, i1 >::operator* ( scalar) const
inline

Multiply this swizzle permutation by a scalar and return the result.

template<typename T , Index dimension, Index i0, Index i1>
VectorND<T,3> om::math::Swizzle3D< T, dimension, i0, i1, i1 >::operator/ ( scalar) const
inline

Divide this swizzle permutation by a scalar and return the result.

template<typename T , Index dimension, Index i0, Index i1>
VectorND<T,3> om::math::Swizzle3D< T, dimension, i0, i1, i1 >::operator+ ( const VectorND< T, 3 > &  other) const
inline

Add a vector to this swizzle permutation and return the result.

template<typename T , Index dimension, Index i0, Index i1>
VectorND<T,3> om::math::Swizzle3D< T, dimension, i0, i1, i1 >::operator- ( const VectorND< T, 3 > &  other) const
inline

Subtract a vector from this swizzle permutation and return the result.

template<typename T , Index dimension, Index i0, Index i1>
VectorND<T,3> om::math::Swizzle3D< T, dimension, i0, i1, i1 >::operator* ( const VectorND< T, 3 > &  other) const
inline

Multiply this swizzle permutation by another vector and return the result.

template<typename T , Index dimension, Index i0, Index i1>
VectorND<T,3> om::math::Swizzle3D< T, dimension, i0, i1, i1 >::operator/ ( const VectorND< T, 3 > &  other) const
inline

Divide this swizzle permutation by another vector and return the result.

template<typename T , Index dimension, Index i0, Index i1>
VectorND<T,3>& om::math::Swizzle3D< T, dimension, i0, i1, i1 >::operator+= ( value)
inline

Add a vector to this swizzle permutation.

template<typename T , Index dimension, Index i0, Index i1>
VectorND<T,3>& om::math::Swizzle3D< T, dimension, i0, i1, i1 >::operator-= ( value)
inline

Subtract a vector from this swizzle permutation.

template<typename T , Index dimension, Index i0, Index i1>
VectorND<T,3>& om::math::Swizzle3D< T, dimension, i0, i1, i1 >::operator*= ( value)
inline

Multiply this swizzle permutation by another vector.

template<typename T , Index dimension, Index i0, Index i1>
VectorND<T,3>& om::math::Swizzle3D< T, dimension, i0, i1, i1 >::operator/= ( value)
inline

Divide this swizzle permutation by another vector.

template<typename T , Index dimension, Index i0, Index i1>
om::math::Swizzle3D< T, dimension, i0, i1, i1 >::operator data::String ( ) const
inline

Convert this vector permutation to a string representation.


The documentation for this class was generated from the following file: