[DEBUG] MacOs build fix
This commit is contained in:
parent
2441e2c31a
commit
1a81769f15
@ -87,8 +87,13 @@ std::ostream& etk::operator <<(std::ostream& _os, const std::vector<bvec2 >& _ob
|
|||||||
|
|
||||||
vec2 vec2rotate(const vec2& _val, const vec2& _point, float _angle) {
|
vec2 vec2rotate(const vec2& _val, const vec2& _point, float _angle) {
|
||||||
vec2 out = _val;
|
vec2 out = _val;
|
||||||
|
#ifdef __TARGET_OS__MacOs
|
||||||
|
float sinAngle = sin(_angle);
|
||||||
|
float cosAngle = cos(_angle);
|
||||||
|
#else
|
||||||
float sinAngle = std::sin(_angle);
|
float sinAngle = std::sin(_angle);
|
||||||
float cosAngle = std::cos(_angle);
|
float cosAngle = std::cos(_angle);
|
||||||
|
#endif
|
||||||
if (_point == vec2(0,0)) {
|
if (_point == vec2(0,0)) {
|
||||||
float tempX = out.x() * cosAngle - out.y() * sinAngle;
|
float tempX = out.x() * cosAngle - out.y() * sinAngle;
|
||||||
float xVal = out.x();
|
float xVal = out.x();
|
||||||
|
@ -34,8 +34,10 @@ namespace etk {
|
|||||||
m_floats[2] = (T)43523424;
|
m_floats[2] = (T)43523424;
|
||||||
m_floats[3] = (T)23452345;
|
m_floats[3] = (T)23452345;
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef __TARGET_OS__MacOs
|
||||||
// hide a bullet warning
|
// hide a bullet warning
|
||||||
(void)btInfinityMask;
|
(void)btInfinityMask;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @brief Constructor from scalars
|
* @brief Constructor from scalars
|
||||||
|
Loading…
x
Reference in New Issue
Block a user