|
@@ -80,7 +80,7 @@ TEST_CASE("[Curve] Custom curve with free tangents") {
|
|
|
"Custom free curve should contain the expected number of points.");
|
|
|
|
|
|
CHECK_MESSAGE(
|
|
|
- Math::is_equal_approx(curve->interpolate(-0.1), 0),
|
|
|
+ Math::is_zero_approx(curve->interpolate(-0.1)),
|
|
|
"Custom free curve should return the expected value at offset 0.1.");
|
|
|
CHECK_MESSAGE(
|
|
|
Math::is_equal_approx(curve->interpolate(0.1), (real_t)0.352),
|
|
@@ -99,7 +99,7 @@ TEST_CASE("[Curve] Custom curve with free tangents") {
|
|
|
"Custom free curve should return the expected value at offset 0.1.");
|
|
|
|
|
|
CHECK_MESSAGE(
|
|
|
- Math::is_equal_approx(curve->interpolate_baked(-0.1), 0),
|
|
|
+ Math::is_zero_approx(curve->interpolate_baked(-0.1)),
|
|
|
"Custom free curve should return the expected baked value at offset 0.1.");
|
|
|
CHECK_MESSAGE(
|
|
|
Math::is_equal_approx(curve->interpolate_baked(0.1), (real_t)0.352),
|
|
@@ -169,7 +169,7 @@ TEST_CASE("[Curve] Custom curve with linear tangents") {
|
|
|
"Custom linear curve should contain the expected number of points.");
|
|
|
|
|
|
CHECK_MESSAGE(
|
|
|
- Math::is_equal_approx(curve->interpolate(-0.1), 0),
|
|
|
+ Math::is_zero_approx(curve->interpolate(-0.1)),
|
|
|
"Custom linear curve should return the expected value at offset -0.1.");
|
|
|
CHECK_MESSAGE(
|
|
|
Math::is_equal_approx(curve->interpolate(0.1), (real_t)0.4),
|
|
@@ -188,7 +188,7 @@ TEST_CASE("[Curve] Custom curve with linear tangents") {
|
|
|
"Custom linear curve should return the expected value at offset 2.0.");
|
|
|
|
|
|
CHECK_MESSAGE(
|
|
|
- Math::is_equal_approx(curve->interpolate_baked(-0.1), 0),
|
|
|
+ Math::is_zero_approx(curve->interpolate_baked(-0.1)),
|
|
|
"Custom linear curve should return the expected baked value at offset -0.1.");
|
|
|
CHECK_MESSAGE(
|
|
|
Math::is_equal_approx(curve->interpolate_baked(0.1), (real_t)0.4),
|