瀏覽代碼

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
 {
 	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;
 }