8 #include "VectorMathDecl.h"
15 namespace CubeMapCellHelpers
17 void CalculateLatLongCellCorners(
const CubeMap::CubeMapCellInfo& cellInfo, std::vector<Space::LatLong>& out_latLongCellCorners);
19 void CalculateCellBoundaryPlanes(
const CubeMap::CubeMapCellInfo& cellInfo, std::vector<Geometry::DoublePlane>& out_planes);
21 void CalculateCellSplitPlanes(
const Streaming::MortonKey& key, Geometry::DoublePlane& splitPlaneRightPositive, Geometry::DoublePlane& out_splitPlaneTopPositive);
23 void CalculateLatLongBounds(
const CubeMap::CubeMapCellInfo& cellInfo, Space::LatLong& out_southWestLatLong, Space::LatLong& out_northEastLatLong);
25 bool LineSegmentIntersectsWithCubeFaceEdge(
const dv3& ecefPointA,
const dv3& ecefPointB,
const int cubeFaceIndex,
double& out_closestIntersectionParam);
27 bool SphereIntersectsCell(
const Geometry::Sphere& sphere,
const std::vector<Geometry::DoublePlane>& cellBoundingPlanes);