5 #include "VectorMathDecl.h"
13 namespace TransformHelpers
15 void ComputeModelViewProjectionFacingCamera(
const dv3& ecefPosition,
const Camera::RenderCamera& renderCamera, m44& outModelViewProjection);
17 void ComputeModelViewProjectionFacingCamera(
const dv3& ecefPosition,
const Camera::RenderCamera& renderCamera, m44& outModelViewProjection,
float modelScale);
19 v3 TransformModelSpaceToViewSpace(
const v3& modelPosition,
const m44& modelViewProjection);
21 v2 TransformViewSpaceToScreenSpace(
const v3& viewSpacePosition,
float viewportWidth,
float viewportHeight);
23 v3 TransformModelSpaceToScreenSpace(
const v3& modelPosition,
const m44& modelViewProjection,
float viewportWidth,
float viewportHeight);
25 float ComputeModelScaleForConstantScreenSize(
const Camera::RenderCamera& renderCamera,
const dv3& objectEcefPosition);
26 float ComputeModelScaleForConstantScreenSizeWithVerticalFoV(
const Camera::RenderCamera& renderCamera,
const dv3& objectEcefPosition);