GLFX::Matrix3 Struct Reference

#include <glfxvec.h>

List of all members.

Public Member Functions

 Matrix3 (const float *m)
 Matrix3 (const Matrix3 &m)
 Matrix3 (float _11, float _12, float _13, float _21, float _22, float _23, float _31, float _32, float _33)
 Matrix3 (float f)
 operator float * ()
 operator const float * () const
 operator Matrix4 () const
Vec3operator[] (int n)
float & operator() (int n, int m)
Matrix3operator= (const Matrix3 &m)
Matrix3operator *= (const Matrix3 &m)
float Det () const
Vec2 TransformPoint (const Vec2 &tc) const

Public Attributes

float _11
float _12
float _13
float _21
float _22
float _23
float _31
float _32
float _33

Friends

Matrix3 operator * (const Matrix3 &a, const Matrix3 &b)
float Det (const Matrix3 &m)
Matrix3 MatrixTextureRotation (float angle)
Matrix3 MatrixTextureTranslation (float u, float v)
Matrix3 MatrixTextureTranslation (const Vec2 &v)
Matrix3 MatrixTextureScaling (float u, float v)
Matrix3 MatrixTextureScaling (const Vec2 &v)


Constructor & Destructor Documentation

GLFX::Matrix3::Matrix3 ( const float *  m  )  [inline]

Construct matrix from 9 float values.

GLFX::Matrix3::Matrix3 ( const Matrix3 m  )  [inline]

Construct matrix from another one.

GLFX::Matrix3::Matrix3 ( float  _11,
float  _12,
float  _13,
float  _21,
float  _22,
float  _23,
float  _31,
float  _32,
float  _33 
) [inline]

Construct matrix from 9 float values.

GLFX::Matrix3::Matrix3 ( float  f  )  [inline]

Construct matrix from scalar.


Member Function Documentation

GLFX::Matrix3::operator float * (  )  [inline]

Convert matrix to array of floats.

GLFX::Matrix3::operator const float * (  )  const [inline]

Convert matrix to array of floats.

GLFX::Matrix3::operator Matrix4 (  )  const [inline]

Convert to 4x4 matrix.

Vec3 & GLFX::Matrix3::operator[] ( int  n  )  [inline]

Get matrix row.

float & GLFX::Matrix3::operator() ( int  n,
int  m 
) [inline]

Get matrix element.

Matrix3 & GLFX::Matrix3::operator= ( const Matrix3 m  )  [inline]

Assing matrix.

Matrix3 & GLFX::Matrix3::operator *= ( const Matrix3 m  )  [inline]

Multiply by matrix.

float GLFX::Matrix3::Det (  )  const [inline]

Compute matrix determinant.

Vec2 GLFX::Matrix3::TransformPoint ( const Vec2 tc  )  const [inline]

Transform 2d point by matrix.


Friends And Related Function Documentation

Matrix3 operator * ( const Matrix3 a,
const Matrix3 b 
) [friend]

Multiply matrices.

float Det ( const Matrix3 m  )  [friend]

Compute matrix determinant.

Matrix3 MatrixTextureRotation ( float  angle  )  [friend]

Construct texture rotation matrix from angle.

Matrix3 MatrixTextureTranslation ( float  u,
float  v 
) [friend]

Construct texture translation matrix.

Matrix3 MatrixTextureTranslation ( const Vec2 v  )  [friend]

Construct texture translation matrix.

Matrix3 MatrixTextureScaling ( float  u,
float  v 
) [friend]

Construct texture scaling matrix.

Matrix3 MatrixTextureScaling ( const Vec2 v  )  [friend]

Construct texture scaling matrix.


Member Data Documentation

float GLFX::Matrix3::_11

Matrix element [1, 1].

float GLFX::Matrix3::_12

Matrix element [1, 2].

float GLFX::Matrix3::_13

Matrix element [1, 3].

float GLFX::Matrix3::_21

Matrix element [2, 1].

float GLFX::Matrix3::_22

Matrix element [2, 2].

float GLFX::Matrix3::_23

Matrix element [2, 3].

float GLFX::Matrix3::_31

Matrix element [3, 1].

float GLFX::Matrix3::_32

Matrix element [3, 2].

float GLFX::Matrix3::_33

Matrix element [3, 3].


The documentation for this struct was generated from the following file:
SourceForge.net Logo