Public Member Functions | Public Attributes
mat4 Struct Reference

#include <tgMathlib.h>

List of all members.

Public Member Functions

float det () const
void identity ()
mat4 inverse () const
void look_at (const vec3 &eye, const vec3 &dir, const vec3 &up)
void look_at (const float *eye, const float *dir, const float *up)
 mat4 ()
 mat4 (const vec3 &v)
 mat4 (float x, float y, float z)
 mat4 (const vec3 &axis, float angle)
 mat4 (float x, float y, float z, float angle)
 mat4 (const mat3 &m)
 mat4 (const float *m)
 mat4 (const mat4 &m)
 operator const float * () const
 operator float * ()
vec3 operator* (const vec3 &v) const
vec4 operator* (const vec4 &v) const
mat4 operator* (float f) const
mat4 operator* (const mat4 &m) const
mat4operator*= (float f)
mat4operator*= (const mat4 &m)
mat4 operator+ (const mat4 &m) const
mat4operator+= (const mat4 &m)
mat4 operator- (const mat4 &m) const
mat4operator-= (const mat4 &m)
float & operator[] (int i)
float operator[] (int i) const
void perspective (float fov, float aspect, float znear, float zfar)
void reflect (const vec4 &plane)
void reflect (float x, float y, float z, float w)
void rotate (const vec3 &axis, float angle)
void rotate (float x, float y, float z, float angle)
void rotate_x (float angle)
void rotate_y (float angle)
void rotate_z (float angle)
mat4 rotation () const
void scale (const vec3 &v)
void scale (float x, float y, float z)
void translate (const vec3 &v)
void translate (float x, float y, float z)
mat4 transpose () const
mat4 transpose_rotation () const
void zero ()

Public Attributes

float mat [16]

Detailed Description

Definition at line 551 of file tgMathlib.h.


Constructor & Destructor Documentation

mat4::mat4 ( ) [inline]

Definition at line 553 of file tgMathlib.h.

mat4::mat4 ( const vec3 v) [inline]

Definition at line 559 of file tgMathlib.h.

mat4::mat4 ( float  x,
float  y,
float  z 
) [inline]

Definition at line 562 of file tgMathlib.h.

mat4::mat4 ( const vec3 axis,
float  angle 
) [inline]

Definition at line 565 of file tgMathlib.h.

mat4::mat4 ( float  x,
float  y,
float  z,
float  angle 
) [inline]

Definition at line 568 of file tgMathlib.h.

mat4::mat4 ( const mat3 m) [inline]

Definition at line 571 of file tgMathlib.h.

mat4::mat4 ( const float *  m) [inline]

Definition at line 577 of file tgMathlib.h.

mat4::mat4 ( const mat4 m) [inline]

Definition at line 583 of file tgMathlib.h.


Member Function Documentation

float mat4::det ( ) const [inline]

Definition at line 686 of file tgMathlib.h.

void mat4::identity ( ) [inline]

Definition at line 725 of file tgMathlib.h.

mat4 mat4::inverse ( ) const [inline]

Definition at line 697 of file tgMathlib.h.

void mat4::look_at ( const vec3 eye,
const vec3 dir,
const vec3 up 
) [inline]

Definition at line 828 of file tgMathlib.h.

void mat4::look_at ( const float *  eye,
const float *  dir,
const float *  up 
) [inline]

Definition at line 844 of file tgMathlib.h.

mat4::operator const float * ( ) const [inline]

Definition at line 656 of file tgMathlib.h.

mat4::operator float * ( ) [inline]

Definition at line 655 of file tgMathlib.h.

vec3 mat4::operator* ( const vec3 v) const [inline]

Definition at line 590 of file tgMathlib.h.

vec4 mat4::operator* ( const vec4 v) const [inline]

Definition at line 597 of file tgMathlib.h.

mat4 mat4::operator* ( float  f) const [inline]

Definition at line 605 of file tgMathlib.h.

mat4 mat4::operator* ( const mat4 m) const [inline]

Definition at line 613 of file tgMathlib.h.

mat4& mat4::operator*= ( float  f) [inline]

Definition at line 650 of file tgMathlib.h.

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

Definition at line 651 of file tgMathlib.h.

mat4 mat4::operator+ ( const mat4 m) const [inline]

Definition at line 633 of file tgMathlib.h.

mat4& mat4::operator+= ( const mat4 m) [inline]

Definition at line 652 of file tgMathlib.h.

mat4 mat4::operator- ( const mat4 m) const [inline]

Definition at line 641 of file tgMathlib.h.

mat4& mat4::operator-= ( const mat4 m) [inline]

Definition at line 653 of file tgMathlib.h.

float& mat4::operator[] ( int  i) [inline]

Definition at line 658 of file tgMathlib.h.

float mat4::operator[] ( int  i) const [inline]

Definition at line 659 of file tgMathlib.h.

void mat4::perspective ( float  fov,
float  aspect,
float  znear,
float  zfar 
) [inline]

Definition at line 815 of file tgMathlib.h.

void mat4::reflect ( const vec4 plane) [inline]

Definition at line 799 of file tgMathlib.h.

void mat4::reflect ( float  x,
float  y,
float  z,
float  w 
) [inline]

Definition at line 811 of file tgMathlib.h.

void mat4::rotate ( const vec3 axis,
float  angle 
) [inline]

Definition at line 731 of file tgMathlib.h.

void mat4::rotate ( float  x,
float  y,
float  z,
float  angle 
) [inline]

Definition at line 751 of file tgMathlib.h.

void mat4::rotate_x ( float  angle) [inline]

Definition at line 754 of file tgMathlib.h.

void mat4::rotate_y ( float  angle) [inline]

Definition at line 763 of file tgMathlib.h.

void mat4::rotate_z ( float  angle) [inline]

Definition at line 772 of file tgMathlib.h.

mat4 mat4::rotation ( ) const [inline]

Definition at line 661 of file tgMathlib.h.

void mat4::scale ( const vec3 v) [inline]

Definition at line 781 of file tgMathlib.h.

void mat4::scale ( float  x,
float  y,
float  z 
) [inline]

Definition at line 787 of file tgMathlib.h.

void mat4::translate ( const vec3 v) [inline]

Definition at line 790 of file tgMathlib.h.

void mat4::translate ( float  x,
float  y,
float  z 
) [inline]

Definition at line 796 of file tgMathlib.h.

mat4 mat4::transpose ( ) const [inline]

Definition at line 669 of file tgMathlib.h.

mat4 mat4::transpose_rotation ( ) const [inline]

Definition at line 677 of file tgMathlib.h.

void mat4::zero ( ) [inline]

Definition at line 719 of file tgMathlib.h.


Member Data Documentation

float mat4::mat[16]

Definition at line 848 of file tgMathlib.h.


The documentation for this struct was generated from the following file:


blort
Author(s): Thomas Mörwald , Michael Zillich , Andreas Richtsfeld , Johann Prankl , Markus Vincze , Bence Magyar
autogenerated on Wed Aug 26 2015 15:24:12