#include <glu3.h>
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] |
Basic four-component vector type.
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.
INLINE GLUvec4 GLUvec4::operator* | ( | GLfloat | f | ) | const |
Multiply with a scalar.
Component-wise multiplication with a vec4.
Multiply a vector with a matrix.
Multiply a row-vector with a 4x4 matrix resulting in a row-vector.
Component-wise subtraction with a vec4.
GLfloat GLUvec4::values[4] |
Data values of the vector.