/cygdrive/d/src/svn/vrut/trunk/core/src/3dmath.h File Reference

#include <wx/string.h>
#include <sstream>
#include <memory.h>
#include <cmath>
#include <iostream>
#include <iomanip>
#include "common.h"

Go to the source code of this file.

Classes

struct  vector2
 2 component vector More...
struct  vector3
 3 component vector More...
struct  vector4
 4 component vector More...
struct  plane
 Plane structure. More...
struct  matrix
 4x4 matrix More...
struct  Ray
 Structure with ray data. More...
struct  Triangle

Defines

#define MOLLER_RAY_TRI_INTERSECTION   1

Functions

vector3 CrossProd (const vector3 &a, const vector3 &b)
 Get cross product.
vector3 Normalize (const vector3 &a)


Define Documentation

#define MOLLER_RAY_TRI_INTERSECTION   1


Function Documentation

vector3 CrossProd ( const vector3 a,
const vector3 b 
) [inline]

Get cross product.

Definition at line 1181 of file 3dmath.h.

01182 {
01183   return a.Cross(b);
01184 }

vector3 Normalize ( const vector3 a  )  [inline]

Definition at line 1186 of file 3dmath.h.

01187 {
01188   vector3 b = a;
01189   return b.Normalize();
01190 }


Generated on Tue Mar 10 14:41:34 2009 for VRUT by  doxygen 1.5.5