mElite
1.0
An Elite clone based on TextElite by Jan-Philipp Kappmeier and Melanie Schmidt.
|
#include <VectorMath.h>
Static Public Member Functions | |
static Vector3 | normal (Vector3 p1, Vector3 p2, Vector3 p3) |
static Vector3 | rotateVector (float angle, Vector3 axis, Vector3 vView) |
static void | drawEliteObject2 (int numberOfFaces, Vector3 vertex[], long face[], Material material[]) |
Definition at line 28 of file VectorMath.h.
|
static |
Calculates a normal of three given points defining a triangle.
p1 | point on a triangle |
p2 | point on a triangle |
p3 | point on a triangle |
Definition at line 15 of file VectorMath.cpp.
Rotates a vector around an axis.
angle | angle by which the vector is rotated |
axis | rotation axis |
oVec | base point of rotation |
Definition at line 40 of file VectorMath.cpp.