#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include "raytri.h"
Go to the source code of this file.
|
bool | ConvexDecomposition::lineIntersectsTriangle (const double *rayStart, const double *rayEnd, const double *p1, const double *p2, const double *p3, double *sect) |
|
bool | ConvexDecomposition::rayIntersectsTriangle (const double *p, const double *d, const double *v0, const double *v1, const double *v2, double &t) |
|
◆ crossProduct
#define crossProduct |
( |
|
a, |
|
|
|
b, |
|
|
|
c |
|
) |
| |
Value: (a)[0] = (b)[1] * (c)[2] - (c)[1] * (b)[2]; \
(a)[1] = (b)[2] * (c)[0] - (c)[2] * (b)[0]; \
(a)[2] = (b)[0] * (c)[1] - (c)[0] * (b)[1];
Definition at line 82 of file raytri.cpp.
◆ innerProduct
#define innerProduct |
( |
|
v, |
|
|
|
q |
|
) |
| |
Value: ((v)[0] * (q)[0] + \
(v)[1] * (q)[1] + \
(v)[2] * (q)[2])
Definition at line 77 of file raytri.cpp.
◆ vector
#define vector |
( |
|
a, |
|
|
|
b, |
|
|
|
c |
|
) |
| |
Value: (a)[0] = (b)[0] - (c)[0]; \
(a)[1] = (b)[1] - (c)[1]; \
(a)[2] = (b)[2] - (c)[2];
Definition at line 70 of file raytri.cpp.