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

vec4 Struct Reference

#include <nv_algebra.h>

List of all members.

Public Member Functions

 vec4 ()
 vec4 (nv_scalar x, nv_scalar y, nv_scalar z, nv_scalar w)
 vec4 (const nv_scalar *xyzw)
 vec4 (const vec3 &u)
 vec4 (const vec4 &u)
bool operator== (const vec4 &u) const
bool operator!= (const vec4 &rhs) const
vec4operator *= (const nv_scalar &lambda)
vec4operator-= (const vec4 &u)
vec4operator+= (const vec4 &u)
vec4 operator- () const
nv_scalaroperator[] (int i)
const nv_scalar operator[] (int i) const


Detailed Description

Definition at line 213 of file nv_algebra.h.


Constructor & Destructor Documentation

vec4::vec4  )  [inline]
 

Definition at line 215 of file nv_algebra.h.

vec4::vec4 nv_scalar  x,
nv_scalar  y,
nv_scalar  z,
nv_scalar  w
[inline]
 

Definition at line 216 of file nv_algebra.h.

vec4::vec4 const nv_scalar xyzw  )  [inline]
 

Definition at line 217 of file nv_algebra.h.

vec4::vec4 const vec3 u  )  [inline]
 

Definition at line 218 of file nv_algebra.h.

vec4::vec4 const vec4 u  )  [inline]
 

Definition at line 219 of file nv_algebra.h.


Member Function Documentation

vec4& vec4::operator *= const nv_scalar lambda  )  [inline]
 

Definition at line 232 of file nv_algebra.h.

bool vec4::operator!= const vec4 rhs  )  const [inline]
 

Definition at line 226 of file nv_algebra.h.

vec4& vec4::operator+= const vec4 u  )  [inline]
 

Definition at line 250 of file nv_algebra.h.

References w, x, y, and z.

vec4 vec4::operator-  )  const [inline]
 

Definition at line 259 of file nv_algebra.h.

vec4& vec4::operator-= const vec4 u  )  [inline]
 

Definition at line 241 of file nv_algebra.h.

References w, x, y, and z.

bool vec4::operator== const vec4 u  )  const [inline]
 

Definition at line 221 of file nv_algebra.h.

References w, x, y, and z.

const nv_scalar vec4::operator[] int  i  )  const [inline]
 

Definition at line 269 of file nv_algebra.h.

nv_scalar& vec4::operator[] int  i  )  [inline]
 

Definition at line 264 of file nv_algebra.h.


Member Data Documentation

nv_scalar vec4::q
 

Definition at line 279 of file nv_algebra.h.

nv_scalar vec4::r
 

Definition at line 279 of file nv_algebra.h.

nv_scalar vec4::s
 

Definition at line 279 of file nv_algebra.h.

nv_scalar vec4::t
 

Definition at line 279 of file nv_algebra.h.

nv_scalar vec4::vec_array[4]
 

Definition at line 281 of file nv_algebra.h.

nv_scalar vec4::w
 

Definition at line 276 of file nv_algebra.h.

Referenced by dot(), mult(), normalize(), nv_sq_norm(), operator *(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator==(), scale(), mat4::set_col(), and mat4::set_row().

nv_scalar vec4::x
 

Definition at line 276 of file nv_algebra.h.

Referenced by dot(), mult(), normalize(), nv_sq_norm(), operator *(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator==(), scale(), mat4::set_col(), mat4::set_row(), and vec3::vec3().

nv_scalar vec4::y
 

Definition at line 276 of file nv_algebra.h.

Referenced by dot(), mult(), normalize(), nv_sq_norm(), operator *(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator==(), scale(), mat4::set_col(), mat4::set_row(), and vec3::vec3().

nv_scalar vec4::z
 

Definition at line 276 of file nv_algebra.h.

Referenced by dot(), mult(), normalize(), nv_sq_norm(), operator *(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator==(), scale(), mat4::set_col(), mat4::set_row(), and vec3::vec3().


The documentation for this struct was generated from the following file:
Generated on Thu Apr 6 15:41:46 2006 for rcssserver3d by  doxygen 1.4.4