All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
PlaceNamesTransforms.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "Types.h"
6 #include "VectorMathDecl.h"
7 #include "Camera.h"
8 
9 namespace Eegeo
10 {
11  namespace Resources
12  {
13  namespace PlaceNames
14  {
16  {
17  private:
18  static const float CORRECT_ANGLE_START;
19  static const float CORRECT_ANGLE_END;
20  static const float CORRECT_ANGLE_RANGE;
21 
22  public:
23  static float CalculateScale (
24  float categoryScale,
25  float placeNameScale,
26  float environmentScale
27  );
28 
29  static bool CalculateMVP(const dv3& ecefPosition,
30  const Camera::RenderCamera& renderCamera,
31  m44& outModelViewProjection,
32  float modelScale
33  );
34 
35  private:
36  static Eegeo::m44 GetTransformForPlace(
37  const Eegeo::dv3& ecefPosition,
38  const Eegeo::m44& cameraWorld,
39  const Eegeo::dv3& cameraEcefPosition,
40  float scale
41  );
42  };
43  }
44  }
45 }