7 #include "VectorMath.h"
8 #include "EarthConstants.h"
12 #define CubeMapCellInfo_DebugString 0
25 #if CubeMapCellInfo_DebugString
26 , m_debugKeyString(key.ToString())
29 m_normalisedFaceCentre = CubeMap::KeyToFaceCentre(key, 1.0);
31 m_quadTreeLevel = key.Depth() - 1;
33 m_faceIndex = key.Face();
34 m_faceCentreECEF = CubeMap::FacePointToWorld(m_faceIndex, m_faceCentre, EarthConstants::CubeSideLengthHalf);
35 m_normalisedWidth = 1.0 / (1 << (m_quadTreeLevel));
40 int GetFaceIndex()
const {
return m_faceIndex; }
41 const Eegeo::dv2& GetFaceCentre()
const {
return m_faceCentre; }
42 const Eegeo::dv2& GetNormalisedFaceCentre()
const {
return m_normalisedFaceCentre; }
43 const Eegeo::dv3& GetFaceCentreECEF()
const {
return m_faceCentreECEF;}
44 int GetQuadTreeLevel()
const {
return m_quadTreeLevel; }
45 double GetNormalisedWidth()
const {
return m_normalisedWidth; }
52 double m_normalisedWidth;
55 #if CubeMapCellInfo_DebugString
56 std::string m_debugKeyString;
63 #undef CubeMapCellInfo_DebugString