Files
ReshadePluginsCore/Maths/Maths.hpp

15 lines
413 B
C++
Raw Normal View History

#pragma once
#include <windows.h>
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);
private:
static double DegreesToRadians(double degrees);
static double RadiansToDegrees(double radians);
};