GLUmat4 Struct Reference

#include <glu3.h>

List of all members.

Public Member Functions

 GLUmat4 (void)
 GLUmat4 (const GLUvec4 &c0, const GLUvec4 &c1, const GLUvec4 &c2, const GLUvec4 &c3)
 GLUmat4 (const GLUmat4 &m)
GLUvec4 operator* (const GLUvec4 &) const
GLUmat4 operator* (const GLUmat4 &) const
GLUmat4 operator* (GLfloat) const
GLUmat4 operator+ (const GLUmat4 &) const
GLUmat4 operator- (const GLUmat4 &) const

Public Attributes

struct GLUvec4 col [4]

Detailed Description

Basic 4x4 matrix type.


Constructor & Destructor Documentation

GLUmat4::GLUmat4 ( void   )  [inline]

Default constructor. Columns are uninitialized.

GLUmat4::GLUmat4 ( const GLUvec4 c0,
const GLUvec4 c1,
const GLUvec4 c2,
const GLUvec4 c3 
) [inline]

Initialize a matrix from four vec4 inputs. Each vec4 is a column in the resulting matrix.

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

Initialize a matrix from another matrix.


Member Function Documentation

INLINE GLUmat4 GLUmat4::operator* ( GLfloat  f  )  const

Multiply with a scalar.

INLINE GLUmat4 GLUmat4::operator* ( const GLUmat4 m  )  const

Matrix multiply with a 4x4 matrix.

See also:
gluMult4m_4m
INLINE GLUvec4 GLUmat4::operator* ( const GLUvec4 v  )  const

Multiply a vector with a matrix.

Multiply as a column-vector with a 4x4 matrix resulting in a column-vector.

See also:
gluMult4m_4v
INLINE GLUmat4 GLUmat4::operator+ ( const GLUmat4 m  )  const

Component-wise addition with a mat4.

INLINE GLUmat4 GLUmat4::operator- ( const GLUmat4 m  )  const

Component-wise subtraction with a mat4.


Member Data Documentation

struct GLUvec4 GLUmat4::col[4]

Columns of the matrix.


The documentation for this struct was generated from the following files:
 All Classes Files Functions Variables

Generated by  doxygen 1.6.2