#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. |
Return the absolute value of the dot product of the given two vectors.
Return the cross product of the given two vectors.
Return the dot product of the given two vectors.
Return a unit vector pointing in the same direction as the given vector v.
Multifly the vector v with the given real number f and return the result.