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)
FXMat3f & operator= (const FXMat3f &other)
FXMat3f & operator= (FXfloat w)
FXMat3f & set (const FXMat3f &other)
FXMat3f & set (FXfloat w)
FXMat3f & set (FXfloat a00, FXfloat a01, FXfloat a02, FXfloat a10, FXfloat a11, FXfloat a12, FXfloat a20, FXfloat a21, FXfloat a22)
FXMat3f & set (const FXVec3f &a, const FXVec3f &b, const FXVec3f &c)
FXMat3f & set (const FXQuatf &quat)
FXMat3f & operator+= (const FXMat3f &w)
FXMat3f & operator-= (const FXMat3f &w)
FXMat3f & operator*= (FXfloat w)
FXMat3f & operator*= (const FXMat3f &w)
FXMat3f & operator/= (FXfloat w)
FXVec3f & operator[] (FXint i)
const FXVec3f & operator[] (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
FXMat3f & eye ()
FXMat3f & rot (FXfloat c, FXfloat s)
FXMat3f & rot (FXfloat phi)
FXMat3f & trans (FXfloat tx, FXfloat ty)
FXMat3f & scale (FXfloat sx, FXfloat sy)
FXMat3f & scale (FXfloat s)
FXfloat det () const
FXMat3f transpose () const
FXMat3f invert () const

Friends

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)
FXStream & operator<< (FXStream &store, const FXMat3f &m)
FXStream & operator>> (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  ) 

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::operator= ( FXfloat  w  ) 

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.

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

FXMat3f& FX::FXMat3f::operator*= ( FXfloat  w  ) 

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

FXMat3f& FX::FXMat3f::operator/= ( FXfloat  w  ) 

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

Indexing.

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

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

Conversion.

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

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

Unary minus.

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

Matrix and matrix.

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

FXMat3f FX::FXMat3f::operator* ( const FXMat3f &  w  )  const

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

Multiply matrix and vector.

FXVec2f FX::FXMat3f::operator* ( const FXVec2f &  v  )  const

FXMat3f& FX::FXMat3f::eye (  ) 

Set identity matrix.

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

Multiply by rotation of phi.

FXMat3f& FX::FXMat3f::rot ( FXfloat  phi  ) 

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

Multiply by translation.

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

Multiply by scaling.

FXMat3f& FX::FXMat3f::scale ( FXfloat  s  ) 

FXfloat FX::FXMat3f::det (  )  const

Determinant.

FXMat3f FX::FXMat3f::transpose (  )  const

Transpose.

FXMat3f FX::FXMat3f::invert (  )  const

Invert.


Friends And Related Function Documentation

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

Matrix and scalar.

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

FXMat3f operator/ ( const FXMat3f &  a,
FXfloat  x 
) [friend]

FXMat3f operator/ ( FXfloat  x,
const FXMat3f &  a 
) [friend]

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