#include <MathHelpers.hpp>
Static Public Member Functions | |
static float | calculateAbsoluteValue (const float value) |
Calculate the absolute value of a number. | |
static Vector3D | calculateFaceNormal (const Vector3D &vec1, const Vector3D &vec2, const Vector3D &vec3) |
Calculate the normal of a face. | |
static Vector3D | calculateFaceNormal (const Vector3D vec[3]) |
Calculate the normal of a face. | |
static float | calculateDistance (const Vector3D &vec1, const Vector3D &vec2) |
Calculate the distance between 2 vectors. | |
static bool | calculatePlanesIntersection (const Plane &pln1, const Plane &pln2, const Plane &pln3, Vector3D &result) |
Calculate the intersection of three planes. | |
Private Member Functions | |
MathHelpers () | |
Private constructor which is only used to prevent the instanciation of the MathHelper class. |
It contains only static methods and doesn't require to be instanciated (it CANNOT be instanciated).
syBR::Core::MathHelpers::MathHelpers | ( | ) | [private] |
Private constructor which is only used to prevent the instanciation of the MathHelper class.
float syBR::Core::MathHelpers::calculateAbsoluteValue | ( | const float | value | ) | [static] |
Calculate the absolute value of a number.
value | Number for which the absolute value must be calculated |
Vector3D syBR::Core::MathHelpers::calculateFaceNormal | ( | const Vector3D & | vec1, | |
const Vector3D & | vec2, | |||
const Vector3D & | vec3 | |||
) | [static] |
Calculate the normal of a face.
vec1 | Vector #1 of the face | |
vec2 | Vector #2 of the face | |
vec3 | Vector #3 of the face |
Calculate the normal of a face.
vec | Array containing the 3 vectors |
float syBR::Core::MathHelpers::calculateDistance | ( | const Vector3D & | vec1, | |
const Vector3D & | vec2 | |||
) | [static] |
Calculate the distance between 2 vectors.
vec1 | Vector #1 | |
vec2 | Vector #2 |
Copyright © 2008 by Sebastien Frippiat
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.
Last modified Tue Dec 30 17:57:33 2008