Homepage Demos Overview Downloads Tutorials Reference
Credits

GVector Namespace Reference


Classes

class  vector2d
class  vector3d

Functions

template<class num> num dot (const vector3d< num > a, const vector3d< num > b)
template<class num> vector3d< num > cross (const vector3d< num > a, const vector3d< num > b)
 VECTOR3D_EQUAL_BINARY_OPERATOR (+=) VECTOR3D_EQUAL_BINARY_OPERATOR(-=) VECTOR3D_EQUAL_BINARY_OPERATOR(*=) VECTOR3D_EQUAL_BINARY_OPERATOR(/=) VECTOR3D_BINARY_OPERATOR(+) VECTOR3D_BINARY_OPERATOR(-) VECTOR3D_BINARY_OPERATOR(*) VECTOR3D_BINARY_OPERATOR(/) VECTOR3D_SCALAR_OPERATOR(*) VECTOR3D_SCALAR_OPERATOR(/) VECTOR3D_EQUAL_SCALAR_OPERATOR(*=) VECTOR3D_EQUAL_SCALAR_OPERATOR(/=) VECTOR3D_LOGIC_OPERATOR(==
&& VECTOR3D_LOGIC_OPERATOR (!=,||) VECTOR3D_LOGIC_OPERATOR(<
&&&& VECTOR3D_LOGIC_OPERATOR (>,&&) VECTOR3D_LOGIC_OPERATOR(<=
&&&&&& VECTOR3D_LOGIC_OPERATOR (>=,&&) template< class num > vector3d< num > vector3d< num >
template<class num> num distance (const vector3d< num > a, const vector3d< num > b)
template<class num> num sdistance (const vector3d< num > a, const vector3d< num > b)
template<class num> num distance_to_line (const vector3d< num > x0, const vector3d< num > x1, const vector3d< num > p)
template<class num> num dot (const vector2d< num > a, const vector2d< num > b)
 VECTOR2D_EQUAL_BINARY_OPERATOR (+=) VECTOR2D_EQUAL_BINARY_OPERATOR(-=) VECTOR2D_EQUAL_BINARY_OPERATOR(*=) VECTOR2D_EQUAL_BINARY_OPERATOR(/=) VECTOR2D_BINARY_OPERATOR(+) VECTOR2D_BINARY_OPERATOR(-) VECTOR2D_BINARY_OPERATOR(*) VECTOR2D_BINARY_OPERATOR(/) VECTOR2D_SCALAR_OPERATOR(*) VECTOR2D_SCALAR_OPERATOR(/) VECTOR2D_EQUAL_SCALAR_OPERATOR(*=) VECTOR2D_EQUAL_SCALAR_OPERATOR(/=) VECTOR2D_LOGIC_OPERATOR(==
&& VECTOR2D_LOGIC_OPERATOR (!=,||) VECTOR2D_LOGIC_OPERATOR(<
&&&& VECTOR2D_LOGIC_OPERATOR (>,&&) VECTOR2D_LOGIC_OPERATOR(<=
&&&&&& VECTOR2D_LOGIC_OPERATOR (>=,&&) template< class num > vector2d< num > vector2d< num >
template<class num> num distance (const vector2d< num > a, const vector2d< num > b)
template<class num> num sdistance (const vector2d< num > a, const vector2d< num > b)
template<class num> num distance_to_line (const vector2d< num > x0, const vector2d< num > x1, const vector2d< num > p)
template<class num> num offset_to_line (const vector2d< num > x0, const vector2d< num > x1, const vector2d< num > p)
template<class vector> vector point_on_segment (const vector x0, const vector x1, const vector p)
template<class vector> bool intersect_ray_plane (const vector r0, const vector rd, const vector p0, const vector pn, vector &result)


Function Documentation

template<class num>
vector3d<num> cross const vector3d< num >  a,
const vector3d< num >  b
 

Definition at line 158 of file gvector.h.

References GVector::vector3d< num >::x, GVector::vector3d< num >::y, and GVector::vector3d< num >::z.

template<class num>
num distance const vector2d< num >  a,
const vector2d< num >  b
 

Definition at line 561 of file gvector.h.

References dx, GVector::vector2d< num >::x, and GVector::vector2d< num >::y.

template<class num>
num distance const vector3d< num >  a,
const vector3d< num >  b
 

Definition at line 308 of file gvector.h.

References dx, GVector::vector3d< num >::x, GVector::vector3d< num >::y, and GVector::vector3d< num >::z.

template<class num>
num distance_to_line const vector2d< num >  x0,
const vector2d< num >  x1,
const vector2d< num >  p
 

Definition at line 585 of file gvector.h.

References distance(), GVector::vector2d< num >::x, and GVector::vector2d< num >::y.

Here is the call graph for this function:

template<class num>
num distance_to_line const vector3d< num >  x0,
const vector3d< num >  x1,
const vector3d< num >  p
 

Definition at line 334 of file gvector.h.

References distance(), GVector::vector3d< num >::x, GVector::vector3d< num >::y, and GVector::vector3d< num >::z.

Here is the call graph for this function:

template<class num>
num dot const vector2d< num >  a,
const vector2d< num >  b
 

Definition at line 447 of file gvector.h.

References GVector::vector2d< num >::x, and GVector::vector2d< num >::y.

template<class num>
num dot const vector3d< num >  a,
const vector3d< num >  b
 

Definition at line 139 of file gvector.h.

References GVector::vector3d< num >::x, GVector::vector3d< num >::y, and GVector::vector3d< num >::z.

template<class vector>
bool intersect_ray_plane const vector  r0,
const vector  rd,
const vector  p0,
const vector  pn,
vector &  result
 

Definition at line 641 of file gvector.h.

template<class num>
num offset_to_line const vector2d< num >  x0,
const vector2d< num >  x1,
const vector2d< num >  p
 

Definition at line 600 of file gvector.h.

References GVector::vector2d< num >::dot(), GVector::vector2d< num >::set(), GVector::vector2d< num >::x, and GVector::vector2d< num >::y.

Here is the call graph for this function:

template<class vector>
vector point_on_segment const vector  x0,
const vector  x1,
const vector  p
 

Definition at line 618 of file gvector.h.

References dot(), and dx.

Here is the call graph for this function:

template<class num>
num sdistance const vector2d< num >  a,
const vector2d< num >  b
 

Definition at line 573 of file gvector.h.

References dx, GVector::vector2d< num >::x, and GVector::vector2d< num >::y.

template<class num>
num sdistance const vector3d< num >  a,
const vector3d< num >  b
 

Definition at line 321 of file gvector.h.

References dx, GVector::vector3d< num >::x, GVector::vector3d< num >::y, and GVector::vector3d< num >::z.

VECTOR2D_EQUAL_BINARY_OPERATOR  ) 
 

&& && && VECTOR2D_LOGIC_OPERATOR >=  ,
&& 
 

Definition at line 534 of file gvector.h.

References GVector::vector2d< num >::x, and GVector::vector2d< num >::y.

&& && VECTOR2D_LOGIC_OPERATOR &&   ) 
 

&& VECTOR2D_LOGIC_OPERATOR ,
|| 
 

VECTOR3D_EQUAL_BINARY_OPERATOR  ) 
 

&& && && VECTOR3D_LOGIC_OPERATOR >=  ,
&& 
 

Definition at line 243 of file gvector.h.

References GVector::vector3d< num >::x, GVector::vector3d< num >::y, and GVector::vector3d< num >::z.

&& && VECTOR3D_LOGIC_OPERATOR &&   ) 
 

&& VECTOR3D_LOGIC_OPERATOR ,
|| 
 


Tekkotsu v1.5
Generated Fri Oct 10 15:58:51 2003 by Doxygen 1.3.4