FX::FXMat3f Class Reference

#include <FXMat3f.h>

List of all members.


Detailed Description

Single-precision 3x3 matrix.

Public Member Functions

 FXMat3f ()
 FXMat3f (const FXMat3f &other)
 FXMat3f (FXfloat w)
 FXMat3f (FXfloat a00, FXfloat a01, FXfloat a02, FXfloat a10, FXfloat a11, FXfloat a12, FXfloat a20, FXfloat a21, FXfloat a22)
 FXMat3f (const FXVec3f &a, const FXVec3f &b, const FXVec3f &c)
 FXMat3f (const FXQuatf &quat)
FXMat3foperator= (const FXMat3f &other)
FXMat3foperator= (FXfloat w)
FXMat3fset (const FXMat3f &other)
FXMat3fset (FXfloat w)
FXMat3fset (FXfloat a00, FXfloat a01, FXfloat a02, FXfloat a10, FXfloat a11, FXfloat a12, FXfloat a20, FXfloat a21, FXfloat a22)
FXMat3fset (const FXVec3f &a, const FXVec3f &b, const FXVec3f &c)
FXMat3fset (const FXQuatf &quat)
FXMat3foperator+= (const FXMat3f &w)
FXMat3foperator-= (const FXMat3f &w)
FXMat3foperator*= (FXfloat w)
FXMat3foperator*= (const FXMat3f &w)
FXMat3foperator/= (FXfloat w)
FXVec3foperator[] (FXint i)
const FXVec3foperator[] (FXint i) const
 operator FXfloat * ()
 operator const FXfloat * () const
FXMat3f operator- () const
FXMat3f operator+ (const FXMat3f &w) const
FXMat3f operator- (const FXMat3f &w) const
FXMat3f operator* (const FXMat3f &w) const
FXVec3f operator* (const FXVec3f &v) const
FXVec2f operator* (const FXVec2f &v) const
FXMat3feye ()
FXMat3frot (FXfloat c, FXfloat s)
FXMat3frot (FXfloat phi)
FXMat3ftrans (FXfloat tx, FXfloat ty)
FXMat3fscale (FXfloat sx, FXfloat sy)
FXMat3fscale (FXfloat s)
FXfloat det () const
FXMat3f transpose () const
FXMat3f invert () const

Protected Attributes

FXVec3f m [3]

Friends

FXAPI FXMat3f operator* (FXfloat x, const FXMat3f &a)
FXAPI FXMat3f operator* (const FXMat3f &a, FXfloat x)
FXAPI FXMat3f operator/ (const FXMat3f &a, FXfloat x)
FXAPI FXMat3f operator/ (FXfloat x, const FXMat3f &a)
FXAPI FXStreamoperator<< (FXStream &store, const FXMat3f &m)
FXAPI FXStreamoperator>> (FXStream &store, FXMat3f &m)

Constructor & Destructor Documentation

FX::FXMat3f::FXMat3f (  )  [inline]

Default constructor.

FX::FXMat3f::FXMat3f ( const FXMat3f other  ) 

Initialize matrix from another matrix.

FX::FXMat3f::FXMat3f ( FXfloat  w  ) 

Initialize matrix from scalar.

FX::FXMat3f::FXMat3f ( FXfloat  a00,
FXfloat  a01,
FXfloat  a02,
FXfloat  a10,
FXfloat  a11,
FXfloat  a12,
FXfloat  a20,
FXfloat  a21,
FXfloat  a22 
)

Initialize matrix from components.

FX::FXMat3f::FXMat3f ( const FXVec3f a,
const FXVec3f b,
const FXVec3f c 
)

Initialize matrix from three vectors.

FX::FXMat3f::FXMat3f ( const FXQuatf quat  ) 

Initialize matrix from quaternion.


Member Function Documentation

FXMat3f& FX::FXMat3f::operator= ( const FXMat3f other  ) 

Assignment.

FXMat3f& FX::FXMat3f::set ( const FXMat3f other  ) 

Set value from another matrix.

FXMat3f& FX::FXMat3f::set ( FXfloat  w  ) 

Set value from scalar.

FXMat3f& FX::FXMat3f::set ( FXfloat  a00,
FXfloat  a01,
FXfloat  a02,
FXfloat  a10,
FXfloat  a11,
FXfloat  a12,
FXfloat  a20,
FXfloat  a21,
FXfloat  a22 
)

Set value from components.

FXMat3f& FX::FXMat3f::set ( const FXVec3f a,
const FXVec3f b,
const FXVec3f c 
)

Set value from three vectors.

FXMat3f& FX::FXMat3f::set ( const FXQuatf quat  ) 

Set value from quaternion.

FXMat3f& FX::FXMat3f::operator+= ( const FXMat3f w  ) 

Assignment operators.

FXVec3f& FX::FXMat3f::operator[] ( FXint  i  )  [inline]

Indexing.

FX::FXMat3f::operator FXfloat * (  )  [inline]

Conversion.

FXMat3f FX::FXMat3f::operator- (  )  const

Unary minus.

FXMat3f FX::FXMat3f::operator+ ( const FXMat3f w  )  const

Matrix and matrix.

FXVec3f FX::FXMat3f::operator* ( const FXVec3f v  )  const

Multiply matrix and vector.

FXMat3f& FX::FXMat3f::eye (  ) 

Set identity matrix.

FXMat3f& FX::FXMat3f::rot ( FXfloat  c,
FXfloat  s 
)

Multiply by rotation of phi.

FXMat3f& FX::FXMat3f::trans ( FXfloat  tx,
FXfloat  ty 
)

Multiply by translation.

FXMat3f& FX::FXMat3f::scale ( FXfloat  sx,
FXfloat  sy 
)

Multiply by scaling.

FXfloat FX::FXMat3f::det (  )  const

Determinant.

FXMat3f FX::FXMat3f::transpose (  )  const

Transpose.

FXMat3f FX::FXMat3f::invert (  )  const

Invert.


Friends And Related Function Documentation

FXAPI FXMat3f operator* ( FXfloat  x,
const FXMat3f a 
) [friend]

Matrix and scalar.

FXAPI FXStream& operator<< ( FXStream store,
const FXMat3f m 
) [friend]

Save to a stream.

FXAPI FXStream& operator>> ( FXStream store,
FXMat3f m 
) [friend]

Load from a stream.


The documentation for this class was generated from the following file:

(C) 2002-2008 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Jun 13 22:03:44 2008 for TnFOX by doxygen v1.5.6