Namespaces | Defines | 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

namespace  ConvexDecomposition

Defines

#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)

Define Documentation

#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.

#define innerProduct (   v,
 
)
Value:
((v)[0] * (q)[0] + \
                (v)[1] * (q)[1] + \
                (v)[2] * (q)[2])

Definition at line 77 of file raytri.cpp.

#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 Sat Jun 8 2019 20:01:17