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

vec3 Struct Reference

#include <nv_algebra.h>

List of all members.

Public Member Functions

 vec3 ()
 vec3 (nv_scalar x, nv_scalar y, nv_scalar z)
 vec3 (const nv_scalar *xyz)
 vec3 (const vec2 &u)
 vec3 (const vec3 &u)
 vec3 (const vec4 &)
bool operator== (const vec3 &u) const
bool operator!= (const vec3 &rhs) const
vec3operator *= (const nv_scalar &lambda)
vec3 operator- () const
vec3operator-= (const vec3 &u)
vec3operator+= (const vec3 &u)
nv_scalar normalize ()
nv_scalar sq_norm () const
nv_scalar norm () const
nv_scalaroperator[] (int i)
const nv_scalar operator[] (int i) const


Detailed Description

Definition at line 104 of file nv_algebra.h.


Constructor & Destructor Documentation

vec3::vec3  )  [inline]
 

Definition at line 106 of file nv_algebra.h.

vec3::vec3 nv_scalar  x,
nv_scalar  y,
nv_scalar  z
[inline]
 

Definition at line 107 of file nv_algebra.h.

vec3::vec3 const nv_scalar xyz  )  [inline]
 

Definition at line 108 of file nv_algebra.h.

vec3::vec3 const vec2 u  )  [inline]
 

Definition at line 109 of file nv_algebra.h.

vec3::vec3 const vec3 u  )  [inline]
 

Definition at line 110 of file nv_algebra.h.

vec3::vec3 const vec4  )  [inline]
 

Definition at line 310 of file nv_algebra.h.

References vec4::x, x, vec4::y, y, vec4::z, and z.


Member Function Documentation

nv_scalar vec3::norm  )  const [inline]
 

Definition at line 153 of file nv_algebra.h.

Referenced by normalize(), and quat::quat().

nv_scalar vec3::normalize  ) 
 

Definition at line 153 of file nv_algebra.cpp.

References norm(), nv_eps, nv_one, nv_zero, x, y, and z.

Referenced by NVMeshMender::Munge().

Here is the call graph for this function:

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

Definition at line 123 of file nv_algebra.h.

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

Definition at line 118 of file nv_algebra.h.

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

Definition at line 144 of file nv_algebra.h.

References x, y, and z.

vec3 vec3::operator-  )  const [inline]
 

Definition at line 131 of file nv_algebra.h.

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

Definition at line 136 of file nv_algebra.h.

References x, y, and z.

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

Definition at line 113 of file nv_algebra.h.

References x, y, and z.

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

Definition at line 160 of file nv_algebra.h.

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

Definition at line 155 of file nv_algebra.h.

nv_scalar vec3::sq_norm  )  const [inline]
 

Definition at line 152 of file nv_algebra.h.


Member Data Documentation

nv_scalar vec3::r
 

Definition at line 170 of file nv_algebra.h.

nv_scalar vec3::s
 

Definition at line 170 of file nv_algebra.h.

nv_scalar vec3::t
 

Definition at line 170 of file nv_algebra.h.

nv_scalar vec3::vec_array[3]
 

Definition at line 172 of file nv_algebra.h.

nv_scalar vec3::x
 

Definition at line 167 of file nv_algebra.h.

Referenced by add(), axis_to_quat(), cross(), cube_map_normal(), dot(), mat4::get_translation(), lerp(), look_at(), madd(), mult(), mult_dir(), mult_pos(), NVMeshMender::Munge(), normalize(), normalize(), nv_is_valid(), nv_sq_norm(), operator *(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator==(), operator^(), scale(), mat3::set_col(), mat4::set_rot(), mat3::set_rot(), mat3::set_row(), mat4::set_translation(), sub(), tangent_basis(), trackball(), vec2::vec2(), and vec3().

nv_scalar vec3::y
 

Definition at line 167 of file nv_algebra.h.

Referenced by add(), axis_to_quat(), cross(), cube_map_normal(), dot(), mat4::get_translation(), lerp(), look_at(), madd(), mult(), mult_dir(), mult_pos(), NVMeshMender::Munge(), normalize(), normalize(), nv_is_valid(), nv_sq_norm(), operator *(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator==(), operator^(), scale(), mat3::set_col(), mat4::set_rot(), mat3::set_rot(), mat3::set_row(), mat4::set_translation(), sub(), tangent_basis(), trackball(), vec2::vec2(), and vec3().

nv_scalar vec3::z
 

Definition at line 167 of file nv_algebra.h.

Referenced by add(), axis_to_quat(), cross(), cube_map_normal(), dot(), mat4::get_translation(), lerp(), look_at(), madd(), mult(), mult_dir(), mult_pos(), NVMeshMender::Munge(), normalize(), normalize(), nv_is_valid(), nv_sq_norm(), operator *(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator==(), operator^(), scale(), mat3::set_col(), mat4::set_rot(), mat3::set_rot(), mat3::set_row(), mat4::set_translation(), sub(), tangent_basis(), trackball(), vec2::vec2(), and vec3().


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