5 #include "VectorMath.h"
6 #include "ScreenProperties.h"
7 #include "SpaceHelpers.h"
8 #include "RenderCamera.h"
15 dv3 m_ecefInterestPoint;
17 m44 m_projectionMatrix;
18 m44 m_viewProjectionMatrix;
23 const dv3& ecefInterestPoint,
24 const m44& viewMatrix,
25 const m44& projectionMatrix,
27 : m_ecefLocation(ecefLocation)
28 , m_ecefInterestPoint(ecefInterestPoint)
29 , m_viewMatrix(viewMatrix)
30 , m_projectionMatrix(projectionMatrix)
31 , m_screenProperties(screenProperties)
33 Eegeo::m44::Mul(m_viewProjectionMatrix, ProjectionMatrix(), ViewMatrix());
38 const dv3& EcefLocation()
const {
return m_ecefLocation; }
40 const dv3& EcefInterestPoint()
const {
return m_ecefInterestPoint; }
42 const m44& ViewMatrix()
const {
return m_viewMatrix; }
44 const m44& ProjectionMatrix()
const {
return m_projectionMatrix; }
48 const m44& ViewProjectionMatrix()
const {
return m_viewProjectionMatrix; }
57 eegeoDrawParameters.ScreenProperties().GetScreenWidth(),
58 eegeoDrawParameters.ScreenProperties().GetScreenHeight());
60 m33 viewOrientation(eegeoDrawParameters.ViewMatrix());
62 m33::Inverse(cameraModel, viewOrientation);
63 m44 projection(eegeoDrawParameters.ProjectionMatrix());
64 dv3 ecefLocation(eegeoDrawParameters.EcefLocation());