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

FX::FXMat4f Class Reference

Single-precision 4x4 matrix. More...

#include <FXMat4f.h>

List of all members.

Public Member Functions

 FXMat4f ()
 FXMat4f (FXfloat w)
 FXMat4f (FXfloat a00, FXfloat a01, FXfloat a02, FXfloat a03, FXfloat a10, FXfloat a11, FXfloat a12, FXfloat a13, FXfloat a20, FXfloat a21, FXfloat a22, FXfloat a23, FXfloat a30, FXfloat a31, FXfloat a32, FXfloat a33)
 FXMat4f (const FXVec4f &a, const FXVec4f &b, const FXVec4f &c, const FXVec4f &d)
 FXMat4f (const FXMat4f &other)
FXMat4foperator= (const FXMat4f &other)
FXMat4foperator= (FXfloat w)
FXMat4foperator+= (const FXMat4f &w)
FXMat4foperator-= (const FXMat4f &w)
FXMat4foperator *= (FXfloat w)
FXMat4foperator *= (const FXMat4f &w)
FXMat4foperator/= (FXfloat w)
FXVec4foperator[] (FXint i)
const FXVec4foperator[] (FXint i) const
 operator FXfloat * ()
 operator const FXfloat * () const
FXMat4feye ()
FXMat4fortho (FXfloat left, FXfloat right, FXfloat bottom, FXfloat top, FXfloat hither, FXfloat yon)
FXMat4ffrustum (FXfloat left, FXfloat right, FXfloat bottom, FXfloat top, FXfloat hither, FXfloat yon)
FXMat4fleft ()
FXMat4frot (const FXQuatf &q)
FXMat4frot (const FXVec3f &v, FXfloat c, FXfloat s)
FXMat4frot (const FXVec3f &v, FXfloat phi)
FXMat4fxrot (FXfloat c, FXfloat s)
FXMat4fxrot (FXfloat phi)
FXMat4fyrot (FXfloat c, FXfloat s)
FXMat4fyrot (FXfloat phi)
FXMat4fzrot (FXfloat c, FXfloat s)
FXMat4fzrot (FXfloat phi)
FXMat4flook (const FXVec3f &eye, const FXVec3f &cntr, const FXVec3f &vup)
FXMat4ftrans (FXfloat tx, FXfloat ty, FXfloat tz)
FXMat4ftrans (const FXVec3f &v)
FXMat4fscale (FXfloat sx, FXfloat sy, FXfloat sz)
FXMat4fscale (FXfloat s)
FXMat4fscale (const FXVec3f &v)

Friends

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


Detailed Description

Single-precision 4x4 matrix.


Constructor & Destructor Documentation

FX::FXMat4f::FXMat4f  )  [inline]
 

Constructors.


Member Function Documentation

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

Assignment operators.

FXVec4f& FX::FXMat4f::operator[] FXint  i  )  [inline]
 

Indexing.

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

Conversion.

FXMat4f& FX::FXMat4f::eye  ) 
 

Set identity matrix.

FXMat4f& FX::FXMat4f::ortho FXfloat  left,
FXfloat  right,
FXfloat  bottom,
FXfloat  top,
FXfloat  hither,
FXfloat  yon
 

Orthographic projection.

FXMat4f& FX::FXMat4f::frustum FXfloat  left,
FXfloat  right,
FXfloat  bottom,
FXfloat  top,
FXfloat  hither,
FXfloat  yon
 

Perspective projection.

FXMat4f& FX::FXMat4f::left  ) 
 

Multiply by left-hand matrix.

FXMat4f& FX::FXMat4f::rot const FXQuatf q  ) 
 

Multiply by rotation about unit-quaternion.

FXMat4f& FX::FXMat4f::rot const FXVec3f v,
FXfloat  c,
FXfloat  s
 

Multiply by rotation c,s about axis.

FXMat4f& FX::FXMat4f::rot const FXVec3f v,
FXfloat  phi
 

Multiply by rotation of phi about axis.

FXMat4f& FX::FXMat4f::xrot FXfloat  c,
FXfloat  s
 

Multiply by x-rotation.

FXMat4f& FX::FXMat4f::yrot FXfloat  c,
FXfloat  s
 

Multiply by y-rotation.

FXMat4f& FX::FXMat4f::zrot FXfloat  c,
FXfloat  s
 

Multiply by z-rotation.

FXMat4f& FX::FXMat4f::look const FXVec3f eye,
const FXVec3f cntr,
const FXVec3f vup
 

Look at.

FXMat4f& FX::FXMat4f::trans FXfloat  tx,
FXfloat  ty,
FXfloat  tz
 

Multiply by translation.

FXMat4f& FX::FXMat4f::scale FXfloat  sx,
FXfloat  sy,
FXfloat  sz
 

Multiply by scaling.


Friends And Related Function Documentation

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

Other operators.

FXVec4f operator * const FXVec4f v,
const FXMat4f m
[friend]
 

Multiply matrix and vector.

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

Mutiply matrix and vector, for non-projective matrix.

FXfloat det const FXMat4f m  )  [friend]
 

Determinant.

FXMat4f transpose const FXMat4f m  )  [friend]
 

Transpose.

FXMat4f invert const FXMat4f m  )  [friend]
 

Invert.

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

Save to a stream.

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

Load from a stream.

Copyright © 1997-2005 Jeroen van der Zijp