28 #ifndef WINTERMUTE_MATHUTIL_H 29 #define WINTERMUTE_MATHUTIL_H 32 #include "math/vector3d.h" 39 static float round(
float val);
40 static float roundUp(
float val);
44 bool lineIntersectsTriangle(
const Math::Vector3d &origin,
const Math::Vector3d &direction,
45 const Math::Vector3d &v0,
const Math::Vector3d &v1,
const Math::Vector3d &v2,
46 float &t,
float &u,
float &v);
48 bool lineSegmentIntersectsTriangle(
const Math::Vector3d &lineStart,
const Math::Vector3d &lineEnd,
49 const Math::Vector3d &v0,
const Math::Vector3d &v1,
const Math::Vector3d &v2,
50 Math::Vector3d &intersection,
float &distance);
Definition: math_util.h:37
Definition: achievements_tables.h:27