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

Matrix transformations
[Library Functions]


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 400 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 366 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 455 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 448 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 441 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 428 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 415 of file ShLibMatrixImpl.hpp.


Generated on Fri Nov 5 16:51:41 2004 for Sh by doxygen 1.3.7