LevelS C++ support library  3.83
Classes | Typedefs | Functions
3D vectors

Classes

class  vec3_t< T >
 

Typedefs

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

Functions

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

Detailed Description

Typedef Documentation

◆ vec3

typedef vec3_t<float64> vec3

Specialisation of vec3_t for 64-bit floating point components

Definition at line 143 of file vec3.h.

◆ vec3f

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

◆ dotprod()

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

Returns the dot product of v1 and v2.

Definition at line 124 of file vec3.h.

◆ crossprod()

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

Returns the cross product of a and b.

Definition at line 130 of file vec3.h.

◆ operator<<()

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

Writes v to os.

Definition at line 136 of file vec3.h.


Generated on Wed Nov 13 2024 12:18:16 for LevelS C++ support library