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
VectorMath.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include "Vector3.h"
9 
10 typedef struct MaterialStruct {
11  float emission[4];
12  float ambient[4];
13  float diffuse[4];
14  float specular[4];
15  float shininess[1];
16 } Material;
17 
18 
19 
20 typedef struct Point2Struct {
21  float x, y;
22 } Point2;
23 
24 typedef struct Point4Struct {
25  float x, y, z, a;
26 } Point4, Vector4;
27 
28 class VectorMath{
29 public:
30  static Vector3 normal( Vector3 p1, Vector3 p2, Vector3 p3 );
31  static Vector3 rotateVector( float angle, Vector3 axis, Vector3 vView );
32  static void drawEliteObject2(int numberOfFaces, Vector3 vertex[], long face[], Material material[]);
33 };