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 402 of file ShLibMatrixImpl.hpp.

References SH::cos(), and SH::sin().

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 368 of file ShLibMatrixImpl.hpp.

References SH::cos(), SH::normalize(), and SH::sin().

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

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 457 of file ShLibMatrixImpl.hpp.

References SH::join().

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

2D Scale

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

Definition at line 450 of file ShLibMatrixImpl.hpp.

References SH::join().

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

3D Scale

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

Definition at line 443 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 430 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 417 of file ShLibMatrixImpl.hpp.


Generated on Mon Jan 24 18:38:00 2005 for Sh by  doxygen 1.4.1