Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXMat3f Class Reference

Single-precision 3x3 matrix. More...

#include <FXMat3f.h>

List of all members.

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)
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
FXMat3feye ()
FXMat3frot (FXfloat c, FXfloat s)
FXMat3frot (FXfloat phi)
FXMat3ftrans (FXfloat tx, FXfloat ty)
FXMat3fscale (FXfloat sx, FXfloat sy)
FXMat3fscale (FXfloat s)

Friends

FXMat3f operator+ (const FXMat3f &a, const FXMat3f &b)
FXMat3f operator- (const FXMat3f &a, const FXMat3f &b)
FXMat3f operator- (const FXMat3f &a)
FXMat3f operator * (const FXMat3f &a, const FXMat3f &b)
FXMat3f operator * (FXfloat x, const FXMat3f &a)
FXMat3f operator * (const FXMat3f &a, FXfloat x)
FXMat3f operator/ (const FXMat3f &a, FXfloat x)
FXMat3f operator/ (FXfloat x, const FXMat3f &a)
FXVec3f operator * (const FXVec3f &v, const FXMat3f &m)
FXVec3f operator * (const FXMat3f &a, const FXVec3f &v)
FXVec2f operator * (const FXVec2f &v, const FXMat3f &m)
FXVec2f operator * (const FXMat3f &a, const FXVec2f &v)
FXfloat det (const FXMat3f &m)
FXMat3f transpose (const FXMat3f &m)
FXMat3f invert (const FXMat3f &m)
FXStreamoperator<< (FXStream &store, const FXMat3f &m)
FXStreamoperator>> (FXStream &store, FXMat3f &m)


Detailed Description

Single-precision 3x3 matrix.


Constructor & Destructor Documentation

FX::FXMat3f::FXMat3f  )  [inline]
 

Default constructor.

FX::FXMat3f::FXMat3f const FXMat3f other  ) 
 

Copy constructor.

FX::FXMat3f::FXMat3f FXfloat  w  ) 
 

Construct from scalar number.

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

Construct from components.

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

Construct matrix from three vectors.

FX::FXMat3f::FXMat3f const FXQuatf quat  ) 
 

Construct rotation matrix from quaternion.


Member Function Documentation

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

Assignment operators.

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

Indexing.

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

Conversion.

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.


Friends And Related Function Documentation

FXMat3f operator+ const FXMat3f a,
const FXMat3f b
[friend]
 

Other operators.

FXVec3f operator * const FXVec3f v,
const FXMat3f m
[friend]
 

Multiply matrix and vector.

FXVec2f operator * const FXVec2f v,
const FXMat3f m
[friend]
 

Mutiply matrix and vector, for non-projective matrix.

FXfloat det const FXMat3f m  )  [friend]
 

Determinant.

FXMat3f transpose const FXMat3f m  )  [friend]
 

Transpose.

FXMat3f invert const FXMat3f m  )  [friend]
 

Invert.

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

Save to a stream.

FXStream& operator>> FXStream store,
FXMat3f m
[friend]
 

Load from a stream.

Copyright © 1997-2005 Jeroen van der Zijp