GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
Matrix Class Reference

#include <VectorTools.hh>

Public Member Functions

void operator*= (float v)
void operator*= (const Matrix &m)
Vector get_translate () const
void set_translate (Vector v)

Static Public Member Functions

static bool has_nan (const Matrix &m)
static bool Equal (Matrix m1, Matrix m2)
static Matrix Zero ()
static Matrix KeepRotation (const Matrix &m)
static Matrix Transpose (const Matrix &m)
static Matrix XRotation (float rot)
static Matrix YRotation (float rot)
static Matrix ZRotation (float rot)
static Matrix Translate (float x, float y, float z)
static Matrix Scale (float x, float y, float z)
static Matrix ProjectionTrans (float z_min)
static Matrix PerspectiveProjection (float dist)
static Matrix Perspective (float fovy, float aspect, float near, float far)
static Matrix Perspective2 (float left, float right, float bottom, float top, float near, float far)
static Matrix Ortho (float left, float right, float bottom, float top, float near, float far)
static Matrix gluLookAt (Point eye, Point center, Vector up)
static Matrix SphericalToCartesian (SphericalPoint p)
static Matrix CartesianToSpherical (Point p)
static Matrix Identity ()
static float Determinant (const Matrix &m)
static Matrix MultiplyMatrix (const Matrix &m, int count)
static Matrix RotateAroundAxis (const Vector &v, float angle)
static Matrix RotateAroundAxisPoint (const Point &p, const Vector &v, float angle)
static Matrix Inverse (const Matrix &m)
static Matrix Interpolate (const Matrix &m1, const Matrix &m2, float t)
static AxisAngle FindAxisAngle (const Matrix &m)

Public Attributes

float matrix [16]

Friends

Point operator* (const Point &p, const Matrix &m)
Vector operator* (const Vector &v, const Matrix &m)
Matrix operator* (const Matrix &m1, const Matrix &m2)
Matrix operator+ (const Matrix &m1, const Matrix &m2)
std::ostream & operator<< (std::ostream &o, const Matrix &m)

Member Function Documentation

◆ CartesianToSpherical()

Matrix Matrix::CartesianToSpherical ( Point p)
static
Here is the caller graph for this function:

◆ Determinant()

float Matrix::Determinant ( const Matrix & m)
static
Here is the caller graph for this function:

◆ Equal()

bool Matrix::Equal ( Matrix m1,
Matrix m2 )
inlinestatic

◆ FindAxisAngle()

AxisAngle Matrix::FindAxisAngle ( const Matrix & m)
static

◆ get_translate()

Vector Matrix::get_translate ( ) const
inline
Here is the caller graph for this function:

◆ gluLookAt()

Matrix Matrix::gluLookAt ( Point eye,
Point center,
Vector up )
static
Here is the caller graph for this function:

◆ has_nan()

bool Matrix::has_nan ( const Matrix & m)
static
Here is the caller graph for this function:

◆ Identity()

Matrix Matrix::Identity ( )
static

◆ Interpolate()

Matrix Matrix::Interpolate ( const Matrix & m1,
const Matrix & m2,
float t )
static
Here is the caller graph for this function:

◆ Inverse()

Matrix Matrix::Inverse ( const Matrix & m)
static
Here is the caller graph for this function:

◆ KeepRotation()

Matrix Matrix::KeepRotation ( const Matrix & m)
static
Here is the caller graph for this function:

◆ MultiplyMatrix()

Matrix Matrix::MultiplyMatrix ( const Matrix & m,
int count )
static

◆ operator*=() [1/2]

void Matrix::operator*= ( const Matrix & m)
inline

◆ operator*=() [2/2]

void Matrix::operator*= ( float v)
inline

◆ Ortho()

Matrix Matrix::Ortho ( float left,
float right,
float bottom,
float top,
float near,
float far )
static
Here is the caller graph for this function:

◆ Perspective()

Matrix Matrix::Perspective ( float fovy,
float aspect,
float near,
float far )
static
Here is the caller graph for this function:

◆ Perspective2()

Matrix Matrix::Perspective2 ( float left,
float right,
float bottom,
float top,
float near,
float far )
static

◆ PerspectiveProjection()

Matrix Matrix::PerspectiveProjection ( float dist)
static

◆ ProjectionTrans()

Matrix Matrix::ProjectionTrans ( float z_min)
static

◆ RotateAroundAxis()

Matrix Matrix::RotateAroundAxis ( const Vector & v,
float angle )
static
Here is the caller graph for this function:

◆ RotateAroundAxisPoint()

Matrix Matrix::RotateAroundAxisPoint ( const Point & p,
const Vector & v,
float angle )
static
Here is the caller graph for this function:

◆ Scale()

Matrix Matrix::Scale ( float x,
float y,
float z )
static

◆ set_translate()

void Matrix::set_translate ( Vector v)
inline
Here is the caller graph for this function:

◆ SphericalToCartesian()

Matrix Matrix::SphericalToCartesian ( SphericalPoint p)
static

◆ Translate()

Matrix Matrix::Translate ( float x,
float y,
float z )
static

◆ Transpose()

Matrix Matrix::Transpose ( const Matrix & m)
static
Here is the caller graph for this function:

◆ XRotation()

Matrix Matrix::XRotation ( float rot)
static
Here is the caller graph for this function:

◆ YRotation()

Matrix Matrix::YRotation ( float rot)
static
Here is the caller graph for this function:

◆ Zero()

Matrix Matrix::Zero ( )
static
Here is the caller graph for this function:

◆ ZRotation()

Matrix Matrix::ZRotation ( float rot)
static
Here is the caller graph for this function:

◆ operator* [1/3]

Matrix operator* ( const Matrix & m1,
const Matrix & m2 )
friend

◆ operator* [2/3]

Point operator* ( const Point & p,
const Matrix & m )
friend

◆ operator* [3/3]

Vector operator* ( const Vector & v,
const Matrix & m )
friend

◆ operator+

Matrix operator+ ( const Matrix & m1,
const Matrix & m2 )
friend

◆ operator<<

std::ostream & operator<< ( std::ostream & o,
const Matrix & m )
friend

Member Data Documentation

◆ matrix

float Matrix::matrix[16]

The documentation for this class was generated from the following files: