From 4be7c2a2d08f6b46d1bed52524fedf9a750e641e Mon Sep 17 00:00:00 2001 From: "HuYingzhuo(hugo/hyzboy)" Date: Tue, 31 Oct 2023 16:12:40 +0800 Subject: [PATCH] used tanf(float) instead of tan(double) --- src/Math/Matrix4f.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Math/Matrix4f.cpp b/src/Math/Matrix4f.cpp index a4fa3da..0259319 100644 --- a/src/Math/Matrix4f.cpp +++ b/src/Math/Matrix4f.cpp @@ -78,7 +78,7 @@ namespace hgl float znear, float zfar) { - float f = 1.0f / tan( deg2rad( 0.5f * field_of_view ) ); + float f = 1.0f / tanf( deg2rad( 0.5f * field_of_view ) ); return Matrix4f( f / aspect_ratio,