Visit Cem Yuksel's web site

Files

Class List

Class Members

Class Hierarchy

cySpatialTrans6f Class Reference

#include <cySpatial.h>

List of all members.


Detailed Description

6D spatial matrix for coordinate transforms.

This is a special case for cySpatialMatrix6f class, where the matrix represents a coordinate transformation. In this case, instead of keeping a full 6x6 matrix values, we can keep a 3x3 matrix for rotation, and a 3D point for translation. This compact representation simplifies some computations, therefore you should use this class instead of cySpatialMatrix6f whenever you represent a coordinate transformation. However, for general matrix operations, you have to use cySpatialMatrix6f.


Public Member Functions

Constructors
 cySpatialTrans6f (const cySpatialTrans6f &mat)
 cySpatialTrans6f (const cyMatrix3f &_R, const cyPoint3f &_r)
Initialization methods
void Set (const cyMatrix3f &_R, const cyPoint3f &_r)
void SetIdentity ()
Unary operators
cySpatialTrans6f operator- () const
Binary operators
cySpatialVector6f operator * (const cySpatialVector6f &p) const
cySpatialTrans6f operator * (const cySpatialTrans6f &mat) const
cySpatialTrans6f operator+ (const cySpatialTrans6f &mat) const
cySpatialTrans6f operator- (const cySpatialTrans6f &mat) const
cySpatialTrans6f operator * (float t) const
cySpatialTrans6f operator/ (float t) const
Assignment operators
void operator *= (const cySpatialTrans6f &mat)
void operator+= (const cySpatialTrans6f &mat)
void operator-= (const cySpatialTrans6f &mat)
void operator *= (float t)

Public Attributes

cyMatrix3f R
 Rotation matrix.
cyPoint3f r
 Transformation.

Visit Cem Yuksel's website!