Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Matrix transformations
[Library Functions]

Collaboration diagram for Matrix transformations:


Functions

template<typename T>
ShMatrix< 4, 4, SH_TEMP, T > SH::rotate (const ShGeneric< 3, T > &axis, const ShGeneric< 1, T > &angle)
 3D Rotation about the given axis by the given angle
template<typename T>
ShMatrix< 3, 3, SH_TEMP, T > SH::rotate (const ShGeneric< 1, T > &angle)
 2D Rotation about the given angle
template<typename T>
ShMatrix< 4, 4, SH_TEMP, T > SH::translate (const ShGeneric< 3, T > &a)
 3D Translation
template<typename T>
ShMatrix< 3, 3, SH_TEMP, T > SH::translate (const ShGeneric< 2, T > &a)
 2D Translation
template<typename T>
ShMatrix< 4, 4, SH_TEMP, T > SH::scale (const ShGeneric< 3, T > &a)
 3D Scale
template<typename T>
ShMatrix< 3, 3, SH_TEMP, T > SH::scale (const ShGeneric< 2, T > &a)
 2D Scale
template<int N, typename T>
ShMatrix< N, N, SH_TEMP, T > SH::scale (const ShGeneric< 1, T > &a)
 Uniform scale in N-1 dimensions.

Function Documentation

template<typename T>
ShMatrix< 3, 3, SH_TEMP, T > SH::rotate const ShGeneric< 1, T > &  angle  ) 
 

2D Rotation about the given angle

The angle is specified in radians. The result is an affine transformation matrix.

Definition at line 448 of file ShLibMatrixImpl.hpp.

template<typename T>
ShMatrix< 4, 4, SH_TEMP, T > SH::rotate const ShGeneric< 3, T > &  axis,
const ShGeneric< 1, T > &  angle
 

3D Rotation about the given axis by the given angle

The angle is specified in radians. The result is an affine transformation matrix.

Definition at line 414 of file ShLibMatrixImpl.hpp.

References SH::normalize().

template<int N, typename T>
ShMatrix< N, N, SH_TEMP, T > SH::scale const ShGeneric< 1, T > &  a  )  [inline]
 

Uniform scale in N-1 dimensions.

Returns an NxN affine transformation matrix performing a uniform scale of the given amount in (N-1) dimensions.

Definition at line 506 of file ShLibMatrixImpl.hpp.

References SH::join().

template<typename T>
ShMatrix< 3, 3, SH_TEMP, T > SH::scale const ShGeneric< 2, T > &  a  )  [inline]
 

2D Scale

Returns an affine transformation matrix scaling by the given nonuniform vector.

Definition at line 498 of file ShLibMatrixImpl.hpp.

References SH::join().

template<typename T>
ShMatrix< 4, 4, SH_TEMP, T > SH::scale const ShGeneric< 3, T > &  a  )  [inline]
 

3D Scale

Returns an affine transformation matrix scaling by the given nonuniform vector.

Definition at line 490 of file ShLibMatrixImpl.hpp.

References SH::join().

template<typename T>
ShMatrix< 3, 3, SH_TEMP, T > SH::translate const ShGeneric< 2, T > &  a  ) 
 

2D Translation

Returns an affine transformation matrix translating by the given vector.

Definition at line 476 of file ShLibMatrixImpl.hpp.

template<typename T>
ShMatrix< 4, 4, SH_TEMP, T > SH::translate const ShGeneric< 3, T > &  a  ) 
 

3D Translation

Returns an affine transformation matrix translating by the given vector.

Definition at line 463 of file ShLibMatrixImpl.hpp.


Generated on Thu Apr 21 17:34:45 2005 for Sh by  doxygen 1.4.2