Namespaces | Macros | Functions
raytri.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include "raytri.h"
Include dependency graph for raytri.cpp:

Go to the source code of this file.

Namespaces

 ConvexDecomposition
 

Macros

#define crossProduct(a, b, c)
 
#define innerProduct(v, q)
 
#define vector(a, b, c)
 

Functions

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)
 

Macro Definition Documentation

◆ crossProduct

#define crossProduct (   a,
  b,
 
)
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,
 
)
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,
 
)
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.



convex_decomposition
Author(s): John W. Ratcliff
autogenerated on Wed Mar 2 2022 00:04:59