Skip to content

Commit 0bf0519

Browse files
committed
fix: fix linux build issue
- use std::cos and std::sin instead of std::cosf and std::sinf. it seems that some linux environment do not have these 2 functions in std namespace.
1 parent c18ff8f commit 0bf0519

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LibCmo/VxMath/VxTypes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ namespace LibCmo::VxMath {
444444
}
445445
void VxMatrix::Perspective(CKFLOAT Fov, CKFLOAT Aspect, CKFLOAT Near_plane, CKFLOAT Far_plane) {
446446
Clear();
447-
m_Data[0][0] = std::cosf(Fov * 0.5f) / std::sinf(Fov * 0.5f);
447+
m_Data[0][0] = std::cos(Fov * 0.5f) / std::sin(Fov * 0.5f);
448448
m_Data[1][1] = m_Data[0][0] * Aspect;
449449
m_Data[2][2] = Far_plane / (Far_plane - Near_plane);
450450
m_Data[3][2] = -m_Data[2][2] * Near_plane;

0 commit comments

Comments
 (0)