HyperspaceExplorer 0.7.1
Static Public Member Functions | Static Private Attributes
VecMath::RotationAxes< D > Class Template Reference

How to generate a Rotation matrix from a Rotation component. More...

#include <Rotation.h>

List of all members.

Static Public Member Functions

static unsigned axis (unsigned which, unsigned index)

Static Private Attributes

static unsigned _axis [2][NumAxes< D >::num]
 explicitly stores the values for ii and jj

Detailed Description

template<unsigned D>
class VecMath::RotationAxes< D >

How to generate a Rotation matrix from a Rotation component.

A Rotation matrix about a coordinate axis is created with the c'tor Matrix<D, N>::Matrix (unsigned ii, unsigned jj, N Theta), where ii and jj describe the axis about which is rotated.

Unfortunately the position of the angle in the Rotation vector does not map to the axis indicators ii and jj straightforwardly. This class provides the static method axis(), which computes them.

In fact, though, it works only in the three- and four-dimensional cases. In these dimensions, I have manually specified the axes. For higher dimensions, a NotYetImplementedException is thrown.

Todo:
Find a generic algorithm for D dimensions
Template Parameters:
Ddimension of the vector space

Member Function Documentation

template<unsigned D>
unsigned VecMath::RotationAxes< D >::axis ( unsigned  which,
unsigned  index 
) [static]

Compute the row/column in a rotation Matrix from the dimension of the vector space and the position of the rotation angle in the Rotation vector.

Parameters:
which0 for ii or 1 for jj
indexposition in the Rotation vector

References Util::itoa().

Referenced by VecMath::Rotation< D, N >::operator Matrix< D, N >().

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends

Generated on Mon Apr 9 2012 20:25:19 for HyperspaceExplorer 0.7.1 by doxygen 1.7.4  -  Hosted bySourceForge.net Logo