VectorLib Namespace Reference


Functions

Vector reflection (Vector &ray, Vector &normal)
bool sphereIntersection (Vector &start, Vector &end, Vector &sphereCentre, float radius, float &distance)


Function Documentation

Vector VectorLib::reflection ( Vector ray,
Vector normal 
)

Definition at line 26 of file VectorLib.cpp.

References Vector::dotP(), and Vector::Normalize().

bool VectorLib::sphereIntersection ( Vector start,
Vector end,
Vector sphereCentre,
float  radius,
float &  distance 
)

Definition at line 34 of file VectorLib.cpp.

References Vector::dotP().


Generated on Mon Feb 16 15:15:09 2009 for Scorched3D by  doxygen 1.5.3