Преглед изворни кода

Use own math library, remove unneded includes

Michael Ragazzon пре 6 година
родитељ
комит
fd62101d08
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      Include/Rocket/Core/Vector2.inl

+ 2 - 2
Include/Rocket/Core/Vector2.inl

@@ -77,8 +77,8 @@ template < >
 inline Vector2< float > Vector2< float >::Round() const
 inline Vector2< float > Vector2< float >::Round() const
 {
 {
 	Vector2 < float > result;
 	Vector2 < float > result;
-	result.x = std::roundf(x);
-	result.y = std::roundf(y);
+	result.x = Math::RoundFloat(x);
+	result.y = Math::RoundFloat(y);
 	return result;
 	return result;
 }
 }