From 3f875f916e99cc05cca2a92bdade91a2df8f8ff7 Mon Sep 17 00:00:00 2001 From: Danilo Date: Mon, 11 Nov 2024 10:30:09 -0300 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=B5es=20em=20curve.hpp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/xna/common/curve.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/includes/xna/common/curve.hpp b/includes/xna/common/curve.hpp index 2956d86..a54a0ed 100644 --- a/includes/xna/common/curve.hpp +++ b/includes/xna/common/curve.hpp @@ -1,7 +1,6 @@ #ifndef XNA_COMMON_CURVE_HPP #define XNA_COMMON_CURVE_HPP -#include "../default.hpp" #include namespace xna { @@ -230,7 +229,7 @@ namespace xna { num1 = (key2.Value - key1.Value) * num2; } else { - t = (static_cast(num2) & 1) != 0 ? key2.Position - num3 : key1.Position + num3; + t = (static_cast(num2) & 1) != 0 ? key2.Position - num3 : key1.Position + num3; } } else if (key2.Position < t) @@ -256,7 +255,7 @@ namespace xna { num1 = (key2.Value - key1.Value) * num4; } else { - t = (static_cast(num4) & 1) != 0 ? key2.Position - num5 : key1.Position + num5; + t = (static_cast(num4) & 1) != 0 ? key2.Position - num5 : key1.Position + num5; } } @@ -342,7 +341,7 @@ namespace xna { if (num < 0.0) --num; - return static_cast(static_cast(num)); + return static_cast(static_cast(num)); } constexpr float FindSegment(float t, CurveKey& k0, CurveKey& k1) {