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

gslib::glsl_math::mat4 Struct Reference

#include <glsl_math.h>

Inheritance diagram for gslib::glsl_math::mat4:

Inheritance graph
[legend]
Collaboration diagram for gslib::glsl_math::mat4:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 mat4 ()
 mat4 (value_type v)
 mat4 (const vec4 &column0, const vec4 &column1, const vec4 &column2, const vec4 &column3)
 mat4 (value_type _00, value_type _10, value_type _20, value_type _30, value_type _01, value_type _11, value_type _21, value_type _31, value_type _02, value_type _12, value_type _22, value_type _32, value_type _03, value_type _13, value_type _23, value_type _33)

Static Public Member Functions

mat4 identity ()

Public Attributes

value_type array [4 *4]

Constructor & Destructor Documentation

gslib::glsl_math::mat4::mat4  )  [inline]
 

Definition at line 582 of file glsl_math.h.

Referenced by identity().

00582 {}

gslib::glsl_math::mat4::mat4 value_type  v  )  [inline]
 

Definition at line 583 of file glsl_math.h.

References gslib::glsl_math::tuple< Size >::begin(), and gslib::glsl_math::tuple< Size >::end().

00583                                  {
00584                 std::fill( begin(), end(), v );
00585             }

Here is the call graph for this function:

gslib::glsl_math::mat4::mat4 const vec4 column0,
const vec4 column1,
const vec4 column2,
const vec4 column3
[inline]
 

Definition at line 586 of file glsl_math.h.

References gslib::glsl_math::matrix_mixin< mat4, vec4, 4, 4 >::operator[]().

00586                                                                                                        {
00587                 operator [] ( 0 ) = column0;
00588                 operator [] ( 1 ) = column1;
00589                 operator [] ( 2 ) = column2;
00590                 operator [] ( 3 ) = column3;
00591             }

Here is the call graph for this function:

gslib::glsl_math::mat4::mat4 value_type  _00,
value_type  _10,
value_type  _20,
value_type  _30,
value_type  _01,
value_type  _11,
value_type  _21,
value_type  _31,
value_type  _02,
value_type  _12,
value_type  _22,
value_type  _32,
value_type  _03,
value_type  _13,
value_type  _23,
value_type  _33
[inline]
 

Definition at line 593 of file glsl_math.h.

00597                                                                                  {
00598                 
00599                 array[  0 ] = _00;
00600                 array[  1 ] = _10;
00601                 array[  2 ] = _20;
00602                 array[  3 ] = _30;
00603                 array[  4 ] = _01;
00604                 array[  5 ] = _11;
00605                 array[  6 ] = _21;
00606                 array[  7 ] = _31;
00607                 array[  8 ] = _02;
00608                 array[  9 ] = _12;
00609                 array[ 10 ] = _22;
00610                 array[ 11 ] = _32;
00611                 array[ 12 ] = _03;
00612                 array[ 13 ] = _13;
00613                 array[ 14 ] = _23;
00614                 array[ 15 ] = _33;
00615             }


Member Function Documentation

mat4 gslib::glsl_math::mat4::identity  )  [inline, static]
 

Definition at line 617 of file glsl_math.h.

References mat4().

00617                                    {
00618                 return mat4( 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 );
00619             }

Here is the call graph for this function:


Member Data Documentation

value_type gslib::glsl_math::mat4::array[ 4 * 4 ]
 

Definition at line 580 of file glsl_math.h.


The documentation for this struct was generated from the following file:
Generated on Fri Dec 24 00:52:25 2004 for glsl_math by doxygen 1.3.6