ALL: Eliminate LOCAL_PI macro

This commit is contained in:
Pawel Kolodziejski 2020-09-23 23:20:23 +02:00
parent ada0dd648c
commit 27e12d8a96
22 changed files with 35 additions and 45 deletions

View file

@ -142,7 +142,7 @@ Math::Matrix4 GfxBase::makeLookMatrix(const Math::Vector3d& pos, const Math::Vec
}
Math::Matrix4 GfxBase::makeProjMatrix(float fov, float nclip, float fclip) {
float right = nclip * tan(fov / 2 * (LOCAL_PI / 180));
float right = nclip * tan(fov / 2 * ((float)M_PI / 180));
float left = -right;
float top = right * 0.75;
float bottom = -right * 0.75;