Matrix44 Struct Reference

List of all members.

Public Methods

 operator Float * () const
Floatoperator[] (int row) const
void setIdentity ()
void setQuaternion (const Quaternion &q)
void setEulerRotation (Float h, Float p, Float r)
void setAngleAxisRotation (Float angle, Float x, Float y, Float z)
void setTranslation (Float x, Float y, Float z)
void setTranslation (const Vector3 &t)
Matrix44 operator * (const Matrix44 &m) const
Vector3 operator * (const Vector3 &v) const
Matrix44 inverse () const

Static Public Methods

Matrix44 identity ()

Detailed Description

A 4x4 matrix.


Member Function Documentation

Matrix44 Matrix44::identity   [inline, static]
 

Returns an identity matrix.

Matrix44 Matrix44::inverse   const [inline]
 

Calculate the inverse matrix. There is also a C interface:

 bool Mat44Inverse(Matrix44* dst, Matrix44* src);

Vector3 Matrix44::operator * const Vector3   v const [inline]
 

Vector transformation.

C Interface:
      void Mat44Transform(Vector3* r, const Matrix44* m, const Vector3* v);

Matrix44 Matrix44::operator * const Matrix44 &    m const [inline]
 

Matrix multiplication.

C Interface:
      void Mat44Multiply(Matrix44* result, Matrix44* m1, Matrix44* m2);

Matrix44::operator Float *   const [inline]
 

Access the matrix contents as a flat array.

Float* Matrix44::operator[] int    row const [inline]
 

Access a matrix row as an array.

void Matrix44::setAngleAxisRotation Float    angle,
Float    x,
Float    y,
Float    z
[inline]
 

Set the rotational part of the matrix from an angle-axis representation.

Parameters:
angle  The rotation in degrees.
x,y,z  The normalized rotation axis.
C Interface:
      void Mat44SetAngleAxisRotation(Matrix44* m, Float angle, Float x, Float y, Float z);

void Matrix44::setEulerRotation Float    h,
Float    p,
Float    r
[inline]
 

Sets the rotational part of the matrix from euler angles.

Parameters:
h  Heading, or rotation about Y axis
p  Pitch, or rotation about X axis
r  Roll, or rotation about Z axis.
C Interface:
        void Mat44SetEulerRotation(Matrix44* m, Float h, Float p, Float r);

void Matrix44::setIdentity   [inline]
 

Sets to the identity matrix.

void Matrix44::setQuaternion const Quaternion   q [inline]
 

Set the rotational part of the matrix from a quaternion representation.

C Interface:
      void Mat44SetQuaternion(Matrix44* m, const Quaternion* q);

void Matrix44::setTranslation const Vector3   t [inline]
 

Set the positional part of the matrix.

void Matrix44::setTranslation Float    x,
Float    y,
Float    z
[inline]
 

Set the positional part of the matrix.


The documentation for this struct was generated from the following file:
  • Base/Math/matrix.h


Flat Four Engine
Copyright (C) 2001 by 379, Inc.
This page generated by Doxygen