mElite  1.0
An Elite clone based on TextElite by Jan-Philipp Kappmeier and Melanie Schmidt.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Static Public Member Functions | List of all members
VectorMath Class Reference

#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[])
 

Detailed Description

Definition at line 28 of file VectorMath.h.

Member Function Documentation

static void VectorMath::drawEliteObject2 ( int  numberOfFaces,
Vector3  vertex[],
long  face[],
Material  material[] 
)
static
Vector3 VectorMath::normal ( Vector3  p1,
Vector3  p2,
Vector3  p3 
)
static

Calculates a normal of three given points defining a triangle.

Parameters
p1point on a triangle
p2point on a triangle
p3point on a triangle

Definition at line 15 of file VectorMath.cpp.

Vector3 VectorMath::rotateVector ( float  angle,
Vector3  axis,
Vector3  oVec 
)
static

Rotates a vector around an axis.

Parameters
angleangle by which the vector is rotated
axisrotation axis
oVecbase point of rotation

Definition at line 40 of file VectorMath.cpp.


The documentation for this class was generated from the following files: