Add Horizontal to vertical FOV convert and vice versa
This commit is contained in:
@@ -7,6 +7,10 @@ class Maths
|
||||
public:
|
||||
// Compute new horizontal FOV based on native and target aspect ratio
|
||||
static double CompensateHorizontalFOV(const double baseHorizontalFOVDeg, const double baseAspectRatio, const double targetAspectRatio);
|
||||
// Compute FOV horizontal to vertical based on aspect ratio
|
||||
static float FOVHToV(float fovH, float aspect);
|
||||
// Compute FOV vertical to horizontal based on aspect ratio
|
||||
static float FOVVToH(float fovV, float aspect);
|
||||
|
||||
private:
|
||||
static double DegreesToRadians(double degrees);
|
||||
|
||||
Reference in New Issue
Block a user