Doxygen kind'a sucks and I need multilanguage documentation, so I did that. Also, separated massive Math.h file into smaller files.
59 lines
1.8 KiB
C
59 lines
1.8 KiB
C
#ifndef BH_MATH_RAY3F_H
|
|
#define BH_MATH_RAY3F_H
|
|
|
|
#include "../Common.h"
|
|
|
|
|
|
int BH_Ray3fIntersectPlane(const float start[3],
|
|
const float direction[3],
|
|
const float plane[4],
|
|
float *t,
|
|
float out[3]);
|
|
|
|
|
|
|
|
int BH_Ray3fIntersectTriangle(const float start[3],
|
|
const float direction[3],
|
|
const float a[3],
|
|
const float b[3],
|
|
const float c[3],
|
|
float *t,
|
|
float out[3]);
|
|
|
|
|
|
|
|
int BH_Segment3fIntersectPlane(const float start[3],
|
|
const float end[3],
|
|
const float plane[4],
|
|
float *t,
|
|
float out[3]);
|
|
|
|
|
|
|
|
int BH_Segment3fIntersectTriangle(const float start[3],
|
|
const float end[3],
|
|
const float a[3],
|
|
const float b[3],
|
|
const float c[3],
|
|
float *t,
|
|
float out[3]);
|
|
|
|
|
|
int BH_Ray3fIntersectBox3f(const float aStart[3],
|
|
const float aDirection[3],
|
|
const float bMin[3],
|
|
const float bMax[3],
|
|
float *t,
|
|
float out[3]);
|
|
|
|
|
|
|
|
int BH_Segment3fIntersectBox3f(const float aStart[3],
|
|
const float aEnd[3],
|
|
const float bMin[3],
|
|
const float bMax[3],
|
|
float *t,
|
|
float out[3]);
|
|
|
|
#endif /* BH_MATH_RAY3F_H */
|