Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

mat4 Struct Reference

#include <nv_algebra.h>

List of all members.

Public Member Functions

 mat4 ()
 mat4 (const nv_scalar *array)
 mat4 (const mat4 &M)
 mat4 (const nv_scalar &f0, const nv_scalar &f1, const nv_scalar &f2, const nv_scalar &f3, const nv_scalar &f4, const nv_scalar &f5, const nv_scalar &f6, const nv_scalar &f7, const nv_scalar &f8, const nv_scalar &f9, const nv_scalar &f10, const nv_scalar &f11, const nv_scalar &f12, const nv_scalar &f13, const nv_scalar &f14, const nv_scalar &f15)
const vec4 col (const int i) const
const vec4 operator[] (const int &i) const
const nv_scalaroperator() (const int &i, const int &j) const
nv_scalaroperator() (const int &i, const int &j)
void set_col (int i, const vec4 &v)
void set_row (int i, const vec4 &v)
mat3get_rot (mat3 &M) const
quatget_rot (quat &q) const
void set_rot (const quat &q)
void set_rot (const mat3 &M)
void set_rot (const nv_scalar &theta, const vec3 &v)
void set_rot (const vec3 &u, const vec3 &v)
void set_translation (const vec3 &t)
vec3get_translation (vec3 &t) const
mat4 operator * (const mat4 &) const


Detailed Description

Definition at line 389 of file nv_algebra.h.


Constructor & Destructor Documentation

mat4::mat4  ) 
 

Definition at line 38 of file nv_algebra.cpp.

mat4::mat4 const nv_scalar array  ) 
 

Definition at line 42 of file nv_algebra.cpp.

References mat_array.

mat4::mat4 const mat4 M  ) 
 

Definition at line 47 of file nv_algebra.cpp.

References mat_array.

mat4::mat4 const nv_scalar f0,
const nv_scalar f1,
const nv_scalar f2,
const nv_scalar f3,
const nv_scalar f4,
const nv_scalar f5,
const nv_scalar f6,
const nv_scalar f7,
const nv_scalar f8,
const nv_scalar f9,
const nv_scalar f10,
const nv_scalar f11,
const nv_scalar f12,
const nv_scalar f13,
const nv_scalar f14,
const nv_scalar f15
[inline]
 

Definition at line 395 of file nv_algebra.h.


Member Function Documentation

const vec4 mat4::col const int  i  )  const [inline]
 

Definition at line 404 of file nv_algebra.h.

quat & mat4::get_rot quat q  )  const
 

Definition at line 1141 of file nv_algebra.cpp.

References quat::FromMatrix(), and get_rot().

Here is the call graph for this function:

mat3 & mat4::get_rot mat3 M  )  const
 

Definition at line 1132 of file nv_algebra.cpp.

References a00, mat3::a00, a01, mat3::a01, a02, mat3::a02, a10, mat3::a10, a11, mat3::a11, a12, mat3::a12, a20, mat3::a20, a21, mat3::a21, a22, and mat3::a22.

Referenced by get_rot(), and mat_2_quat().

vec3 & mat4::get_translation vec3 t  )  const
 

Definition at line 1124 of file nv_algebra.cpp.

References a03, a13, a23, vec3::x, vec3::y, and vec3::z.

mat4 mat4::operator * const mat4  )  const
 

Definition at line 371 of file nv_algebra.cpp.

References a00, a01, a02, a03, a10, a11, a12, a13, a20, a21, a22, a23, a30, a31, a32, and a33.

nv_scalar& mat4::operator() const int &  i,
const int &  j
[inline]
 

Definition at line 419 of file nv_algebra.h.

const nv_scalar& mat4::operator() const int &  i,
const int &  j
const [inline]
 

Definition at line 414 of file nv_algebra.h.

const vec4 mat4::operator[] const int &  i  )  const [inline]
 

Definition at line 409 of file nv_algebra.h.

void mat4::set_col int  i,
const vec4 v
[inline]
 

Definition at line 424 of file nv_algebra.h.

References vec4::w, vec4::x, vec4::y, and vec4::z.

void mat4::set_rot const vec3 u,
const vec3 v
 

Definition at line 1077 of file nv_algebra.cpp.

References a00, a01, a02, a10, a11, a12, a20, a21, a22, cross(), dot(), nv_eps, nv_one, w, vec3::x, vec3::y, and vec3::z.

Here is the call graph for this function:

void mat4::set_rot const nv_scalar theta,
const vec3 v
 

Definition at line 1052 of file nv_algebra.cpp.

References a00, a01, a02, a10, a11, a12, a20, a21, a22, vec3::x, vec3::y, and vec3::z.

void mat4::set_rot const mat3 M  ) 
 

Definition at line 1109 of file nv_algebra.cpp.

References mat3::a00, a00, mat3::a01, a01, mat3::a02, a02, mat3::a10, a10, mat3::a11, a11, mat3::a12, a12, mat3::a20, a20, mat3::a21, a21, mat3::a22, and a22.

void mat4::set_rot const quat q  ) 
 

Definition at line 1043 of file nv_algebra.cpp.

References quat::ToMatrix().

Here is the call graph for this function:

void mat4::set_row int  i,
const vec4 v
[inline]
 

Definition at line 432 of file nv_algebra.h.

References vec4::w, vec4::x, vec4::y, and vec4::z.

void mat4::set_translation const vec3 t  ) 
 

Definition at line 1117 of file nv_algebra.cpp.

References a03, a13, a23, vec3::x, vec3::y, and vec3::z.


Member Data Documentation

nv_scalar mat4::_11
 

Definition at line 460 of file nv_algebra.h.

nv_scalar mat4::_12
 

Definition at line 460 of file nv_algebra.h.

nv_scalar mat4::_13
 

Definition at line 460 of file nv_algebra.h.

nv_scalar mat4::_14
 

Definition at line 460 of file nv_algebra.h.

nv_scalar mat4::_21
 

Definition at line 461 of file nv_algebra.h.

nv_scalar mat4::_22
 

Definition at line 461 of file nv_algebra.h.

nv_scalar mat4::_23
 

Definition at line 461 of file nv_algebra.h.

nv_scalar mat4::_24
 

Definition at line 461 of file nv_algebra.h.

nv_scalar mat4::_31
 

Definition at line 462 of file nv_algebra.h.

nv_scalar mat4::_32
 

Definition at line 462 of file nv_algebra.h.

nv_scalar mat4::_33
 

Definition at line 462 of file nv_algebra.h.

nv_scalar mat4::_34
 

Definition at line 462 of file nv_algebra.h.

nv_scalar mat4::_41
 

Definition at line 463 of file nv_algebra.h.

nv_scalar mat4::_42
 

Definition at line 463 of file nv_algebra.h.

nv_scalar mat4::_43
 

Definition at line 463 of file nv_algebra.h.

nv_scalar mat4::_44
 

Definition at line 463 of file nv_algebra.h.

nv_scalar mat4::a00
 

Definition at line 454 of file nv_algebra.h.

Referenced by add(), frustum(), get_rot(), invert(), invert_rot_trans(), look_at(), mult(), mult_dir(), mult_pos(), operator *(), operator *(), set_rot(), and transpose().

nv_scalar mat4::a01
 

Definition at line 455 of file nv_algebra.h.

Referenced by add(), frustum(), get_rot(), invert(), invert_rot_trans(), look_at(), mult(), mult_dir(), mult_pos(), operator *(), operator *(), set_rot(), and transpose().

nv_scalar mat4::a02
 

Definition at line 456 of file nv_algebra.h.

Referenced by add(), frustum(), get_rot(), invert(), invert_rot_trans(), look_at(), mult(), mult_dir(), mult_pos(), operator *(), operator *(), set_rot(), and transpose().

nv_scalar mat4::a03
 

Definition at line 457 of file nv_algebra.h.

Referenced by add(), frustum(), get_translation(), invert(), invert_rot_trans(), look_at(), mult(), mult_pos(), operator *(), operator *(), set_translation(), and transpose().

nv_scalar mat4::a10
 

Definition at line 454 of file nv_algebra.h.

Referenced by add(), frustum(), get_rot(), invert(), invert_rot_trans(), look_at(), mult(), mult_dir(), mult_pos(), operator *(), operator *(), set_rot(), and transpose().

nv_scalar mat4::a11
 

Definition at line 455 of file nv_algebra.h.

Referenced by add(), frustum(), get_rot(), invert(), invert_rot_trans(), look_at(), mult(), mult_dir(), mult_pos(), operator *(), operator *(), set_rot(), and transpose().

nv_scalar mat4::a12
 

Definition at line 456 of file nv_algebra.h.

Referenced by add(), frustum(), get_rot(), invert(), invert_rot_trans(), look_at(), mult(), mult_dir(), mult_pos(), operator *(), operator *(), set_rot(), and transpose().

nv_scalar mat4::a13
 

Definition at line 457 of file nv_algebra.h.

Referenced by add(), frustum(), get_translation(), invert(), invert_rot_trans(), look_at(), mult(), mult_pos(), operator *(), operator *(), set_translation(), and transpose().

nv_scalar mat4::a20
 

Definition at line 454 of file nv_algebra.h.

Referenced by add(), frustum(), get_rot(), invert(), invert_rot_trans(), look_at(), mult(), mult_dir(), mult_pos(), operator *(), operator *(), set_rot(), and transpose().

nv_scalar mat4::a21
 

Definition at line 455 of file nv_algebra.h.

Referenced by add(), frustum(), get_rot(), invert(), invert_rot_trans(), look_at(), mult(), mult_dir(), mult_pos(), operator *(), operator *(), set_rot(), and transpose().

nv_scalar mat4::a22
 

Definition at line 456 of file nv_algebra.h.

Referenced by add(), frustum(), get_rot(), invert(), invert_rot_trans(), look_at(), mult(), mult_dir(), mult_pos(), operator *(), operator *(), set_rot(), and transpose().

nv_scalar mat4::a23
 

Definition at line 457 of file nv_algebra.h.

Referenced by add(), frustum(), get_translation(), invert(), invert_rot_trans(), look_at(), mult(), mult_pos(), operator *(), operator *(), set_translation(), and transpose().

nv_scalar mat4::a30
 

Definition at line 454 of file nv_algebra.h.

Referenced by add(), frustum(), invert(), invert_rot_trans(), look_at(), mult(), mult_pos(), operator *(), operator *(), and transpose().

nv_scalar mat4::a31
 

Definition at line 455 of file nv_algebra.h.

Referenced by add(), frustum(), invert(), invert_rot_trans(), look_at(), mult(), mult_pos(), operator *(), operator *(), and transpose().

nv_scalar mat4::a32
 

Definition at line 456 of file nv_algebra.h.

Referenced by add(), frustum(), invert(), invert_rot_trans(), look_at(), mult(), mult_pos(), operator *(), operator *(), and transpose().

nv_scalar mat4::a33
 

Definition at line 457 of file nv_algebra.h.

Referenced by add(), frustum(), invert(), invert_rot_trans(), look_at(), mult(), mult_pos(), operator *(), operator *(), and transpose().

nv_scalar mat4::b00
 

Definition at line 467 of file nv_algebra.h.

nv_scalar mat4::b01
 

Definition at line 468 of file nv_algebra.h.

nv_scalar mat4::b02
 

Definition at line 469 of file nv_algebra.h.

nv_scalar mat4::b10
 

Definition at line 467 of file nv_algebra.h.

nv_scalar mat4::b11
 

Definition at line 468 of file nv_algebra.h.

nv_scalar mat4::b12
 

Definition at line 469 of file nv_algebra.h.

nv_scalar mat4::b20
 

Definition at line 467 of file nv_algebra.h.

nv_scalar mat4::b21
 

Definition at line 468 of file nv_algebra.h.

nv_scalar mat4::b22
 

Definition at line 469 of file nv_algebra.h.

nv_scalar mat4::mat_array[16]
 

Definition at line 473 of file nv_algebra.h.

Referenced by mat4().

nv_scalar mat4::p
 

Definition at line 467 of file nv_algebra.h.

nv_scalar mat4::q
 

Definition at line 468 of file nv_algebra.h.

nv_scalar mat4::r
 

Definition at line 469 of file nv_algebra.h.

nv_scalar mat4::w
 

Definition at line 470 of file nv_algebra.h.

Referenced by set_rot().

nv_scalar mat4::x
 

Definition at line 470 of file nv_algebra.h.

nv_scalar mat4::y
 

Definition at line 470 of file nv_algebra.h.

nv_scalar mat4::z
 

Definition at line 470 of file nv_algebra.h.


The documentation for this struct was generated from the following files:
Generated on Thu Apr 6 15:39:23 2006 for rcssserver3d by  doxygen 1.4.4