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

gslib::glsl_math::mat2 Struct Reference

#include <glsl_math.h>

Inheritance diagram for gslib::glsl_math::mat2:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 mat2 ()
 mat2 (value_type v)
 mat2 (const vec2 &column0, const vec2 &column1)
 mat2 (value_type _00, value_type _10, value_type _01, value_type _11)
 
// ( 1, 2 ) // ( 3, 4 ) mat2( 1, 3, 2, 4 );



Static Public Member Functions

mat2 identity ()

Public Attributes

value_type array [2 *2]

Constructor & Destructor Documentation

gslib::glsl_math::mat2::mat2  )  [inline]
 

Definition at line 512 of file glsl_math.h.

Referenced by identity().

00512 {}

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

Definition at line 513 of file glsl_math.h.

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

00513                                  {
00514                 std::fill( begin(), end(), v );
00515             }

Here is the call graph for this function:

gslib::glsl_math::mat2::mat2 const vec2 column0,
const vec2 column1
[inline]
 

Definition at line 516 of file glsl_math.h.

References gslib::glsl_math::matrix_mixin< mat2, vec2, 2, 2 >::operator[]().

00516                                                              {
00517                 operator [] ( 0 ) = column0;
00518                 operator [] ( 1 ) = column1;
00519             }

Here is the call graph for this function:

gslib::glsl_math::mat2::mat2 value_type  _00,
value_type  _10,
value_type  _01,
value_type  _11
[inline]
 

// ( 1, 2 ) // ( 3, 4 ) mat2( 1, 3, 2, 4 );

Definition at line 530 of file glsl_math.h.

00532                                                  {
00533                 
00534                 array[ 0 ] = _00;
00535                 array[ 1 ] = _10;
00536                 array[ 2 ] = _01;
00537                 array[ 3 ] = _11;
00538             }


Member Function Documentation

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

Definition at line 540 of file glsl_math.h.

References mat2().

00540                                    {
00541                 return mat2( 1, 0, 0, 1 );
00542             }

Here is the call graph for this function:


Member Data Documentation

value_type gslib::glsl_math::mat2::array[ 2 * 2 ]
 

Definition at line 510 of file glsl_math.h.


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