3D vectors


Classes

class  vec3_t< T >

Typedefs

typedef vec3_t< float64 > vec3
typedef vec3_t< float32 > vec3f

Functions

template<typename T>
vec3_t::dotprod (const vec3_t< T > &v1, const vec3_t< T > &v2)
template<typename T>
vec3_t< T > vec3_t::crossprod (const vec3_t< T > &a, const vec3_t< T > &b)
template<typename T>
std::ostream & vec3_t::operator<< (std::ostream &os, const vec3_t< T > &v)

Detailed Description


Typedef Documentation

typedef vec3_t<float64> vec3

Specialisation of vec3_t for 64-bit floating point components

Definition at line 143 of file vec3.h.

typedef vec3_t<float32> vec3f

Specialisation of vec3_t for 32-bit floating point components

Definition at line 145 of file vec3.h.


Function Documentation

template<typename T>
T dotprod ( const vec3_t< T > &  v1,
const vec3_t< T > &  v2 
) [related, inherited]

Returns the dot product of v1 and v2.

Definition at line 124 of file vec3.h.

template<typename T>
vec3_t< T > crossprod ( const vec3_t< T > &  a,
const vec3_t< T > &  b 
) [related, inherited]

Returns the cross product of a and b.

Definition at line 130 of file vec3.h.

template<typename T>
std::ostream & operator<< ( std::ostream &  os,
const vec3_t< T > &  v 
) [related, inherited]

Writes v to os.

Definition at line 136 of file vec3.h.


Generated on Thu Oct 8 14:48:51 2015 for LevelS C++ support library