vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gm_vec3.h File Reference
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <gm_utils.h>
#include <iostream>

Go to the source code of this file.

Classes

class  gmVector3
 

Functions

gmVector3 operator* (double c, const gmVector3 &v)
 
gmVector3 cross (const gmVector3 &v1, const gmVector3 &v2)
 
double distance (const gmVector3 &v1, const gmVector3 &v2)
 
double distanceSquared (const gmVector3 &v1, const gmVector3 &v2)
 
double dot (const gmVector3 &v1, const gmVector3 &v2)
 
gmVector3 lerp (double f, const gmVector3 &v1, const gmVector3 &v2)
 
double plane_intersect (const gmVector3 &p, const gmVector3 &v, const gmVector3 &plane_p, const gmVector3 &plane_norm)
 
double line_distance (const gmVector3 &p1, const gmVector3 &v1, const gmVector3 &p2, const gmVector3 &v2)
 
double plane_distance (const gmVector3 &p, const gmVector3 &plane_p, const gmVector3 &plane_norm)
 
ostream & operator<< (ostream &os, const gmVector3 &v)
 

Function Documentation

gmVector3 cross ( const gmVector3 v1,
const gmVector3 v2 
)
inline
double distance ( const gmVector3 v1,
const gmVector3 v2 
)
inline
double distanceSquared ( const gmVector3 v1,
const gmVector3 v2 
)
inline
double dot ( const gmVector3 v1,
const gmVector3 v2 
)
inline
gmVector3 lerp ( double  f,
const gmVector3 v1,
const gmVector3 v2 
)
inline
double line_distance ( const gmVector3 p1,
const gmVector3 v1,
const gmVector3 p2,
const gmVector3 v2 
)
inline
gmVector3 operator* ( double  c,
const gmVector3 v 
)
inline
ostream& operator<< ( ostream &  os,
const gmVector3 v 
)
inline
double plane_distance ( const gmVector3 p,
const gmVector3 plane_p,
const gmVector3 plane_norm 
)
inline
double plane_intersect ( const gmVector3 p,
const gmVector3 v,
const gmVector3 plane_p,
const gmVector3 plane_norm 
)
inline