ALL: Eliminate LOCAL_PI macro
This commit is contained in:
parent
ada0dd648c
commit
27e12d8a96
22 changed files with 35 additions and 45 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue