vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
triangleCube.h
Go to the documentation of this file.
1 /*
2 * This class is taken from somewhere in the web and changes has been made to make it work for our purposes.
3 */
4 
5 //#include "precompiled.h"
6 #include <math.h>
7 
8 typedef struct {
9  float x;
10  float y;
11  float z;
12  } Point3;
13 
14 typedef struct{
15  Point3 v1; /* Vertex1 */
16  Point3 v2; /* Vertex2 */
17  Point3 v3; /* Vertex3 */
18  } Triangle3;
19 
20 long face_plane(Point3 p);
21 long bevel_2d(Point3 p);
22 long bevel_3d(Point3 p);
23 long check_point(Point3 p1, Point3 p2, float alpha, long mask);
24 long check_line(Point3 p1, Point3 p2, long outcode_diff);