vrecko
virtual reality framework
|
Classes | |
struct | Point3f |
struct | Triangle3v |
Macros | |
#define | EPS 10e-5 |
#define | SIGN3(A) |
#define | CROSS(A, B, C) |
#define | SUB(A, B, C) |
#define | LERP(A, B, C) ((B)+(A)*((C)-(B))) |
#define | MIN3(a, b, c) ((((a)<(b))&&((a)<(c))) ? (a) : (((b)<(c)) ? (b) : (c))) |
#define | MAX3(a, b, c) ((((a)>(b))&&((a)>(c))) ? (a) : (((b)>(c)) ? (b) : (c))) |
#define | INSIDE 0 |
#define | OUTSIDE 1 |
Functions | |
long | face_plane (Point3 p) |
long | bevel_2d (Point3 p) |
long | bevel_3d (Point3 p) |
long | check_point (Point3 p1, Point3 p2, float alpha, long mask) |
long | check_line (Point3 p1, Point3 p2, long outcode_diff) |
long | point_triangle_intersection (Point3 p, Triangle3 t) |
long | t_c_intersection (Triangle3 t) |
#define CROSS | ( | A, | |
B, | |||
C | |||
) |
#define EPS 10e-5 |
#define INSIDE 0 |
#define LERP | ( | A, | |
B, | |||
C | |||
) | ((B)+(A)*((C)-(B))) |
#define MAX3 | ( | a, | |
b, | |||
c | |||
) | ((((a)>(b))&&((a)>(c))) ? (a) : (((b)>(c)) ? (b) : (c))) |
#define MIN3 | ( | a, | |
b, | |||
c | |||
) | ((((a)<(b))&&((a)<(c))) ? (a) : (((b)<(c)) ? (b) : (c))) |
#define OUTSIDE 1 |
#define SIGN3 | ( | A | ) |
#define SUB | ( | A, | |
B, | |||
C | |||
) |
long bevel_2d | ( | Point3 | p | ) |
long bevel_3d | ( | Point3 | p | ) |
long face_plane | ( | Point3 | p | ) |
long t_c_intersection | ( | Triangle3 | t | ) |