GLUvec4 Struct Reference

#include <glu3.h>

List of all members.

Public Member Functions

 GLUvec4 (void)
 GLUvec4 (GLfloat v)
 GLUvec4 (GLfloat x, GLfloat y, GLfloat z, GLfloat w)
 GLUvec4 (const GLUvec4 &v)
GLUvec4 operator* (const GLUmat4 &) const
GLUvec4 operator* (const GLUvec4 &) const
GLUvec4 operator* (GLfloat) const
GLUvec4 operator+ (const GLUvec4 &) const
GLUvec4 operator- (const GLUvec4 &) const

Public Attributes

GLfloat values [4]

Detailed Description

Basic four-component vector type.


Constructor & Destructor Documentation

GLUvec4::GLUvec4 ( void   )  [inline]

Default constructor. Data values are uninitialized.

GLUvec4::GLUvec4 ( GLfloat  v  )  [inline]

Initialize vector from one float value.

GLUvec4::GLUvec4 ( GLfloat  x,
GLfloat  y,
GLfloat  z,
GLfloat  w 
) [inline]

Initialize vector from four float values.

GLUvec4::GLUvec4 ( const GLUvec4 v  )  [inline]

Initialize vector from another vector.


Member Function Documentation

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

Multiply with a scalar.

See also:
gluMult4v_f
INLINE GLUvec4 GLUvec4::operator* ( const GLUvec4 v  )  const

Component-wise multiplication with a vec4.

See also:
gluMult4v_4v
INLINE GLUvec4 GLUvec4::operator* ( const GLUmat4 m  )  const

Multiply a vector with a matrix.

Multiply a row-vector with a 4x4 matrix resulting in a row-vector.

INLINE GLUvec4 GLUvec4::operator+ ( const GLUvec4 v  )  const

Component-wise addition with a vec4.

INLINE GLUvec4 GLUvec4::operator- ( const GLUvec4 v  )  const

Component-wise subtraction with a vec4.


Member Data Documentation

GLfloat GLUvec4::values[4]

Data values of the vector.


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

Generated by  doxygen 1.6.2