include/cglib/vector3.h File Reference

#include "cglib/definitions.h"

Go to the source code of this file.

Classes

struct  Vector3
 Represents a vector in 3D. More...

Functions

Vector3 operator* (float f, const Vector3 &v)
 Multifly the vector v with the given real number f and return the result.
float dot (const Vector3 &v1, const Vector3 &v2)
 Return the dot product of the given two vectors.
float absdot (const Vector3 &v1, const Vector3 &v2)
 Return the absolute value of the dot product of the given two vectors.
Vector3 cross (const Vector3 &v1, const Vector3 &v2)
 Return the cross product of the given two vectors.
Vector3 normalize (const Vector3 &v)
 Return a unit vector pointing in the same direction as the given vector v.


Function Documentation

float absdot ( const Vector3 v1,
const Vector3 v2 
) [inline]

Return the absolute value of the dot product of the given two vectors.

Vector3 cross ( const Vector3 v1,
const Vector3 v2 
) [inline]

Return the cross product of the given two vectors.

float dot ( const Vector3 v1,
const Vector3 v2 
) [inline]

Return the dot product of the given two vectors.

Vector3 normalize ( const Vector3 v  )  [inline]

Return a unit vector pointing in the same direction as the given vector v.

Vector3 operator* ( float  f,
const Vector3 v 
) [inline]

Multifly the vector v with the given real number f and return the result.


Generated on Tue Sep 8 02:20:35 2009 for cglib by  doxygen 1.5.9