5 #include "VectorMathDecl.h"
17 static bool IntersectSegmentTriangle(
Eegeo::dv3 p,
27 static bool GetRayEarthSphereIntersection(
const Eegeo::dv3& rayStart,
30 static bool GetRayEarthSphereIntersection(
const Eegeo::dv3& rayStart,
33 double squaredRadious);
39 static bool SphereIntersectsWithRay(
const Sphere& sphere,
const Eegeo::dv3& rayStartPoint,
const Eegeo::dv3& rayDirection,
double &t);
43 static bool SphereIntersectsWithPlane(
const Sphere& sphere,
const DoublePlane& plane);
45 static bool TriangleIntersectsWithRay(
const Eegeo::v3& rayOrigin,
53 const v3& frustumRelativeSphereCenter,
54 const float sphereRadius,
55 uint& inactivePlaneFlags);
57 static bool RayIntersectsWithPlane(
const Eegeo::dv3 & rayOrigin,