Skip to content

Commit 191658d

Browse files
committed
fix: computed clamp discarded
1 parent 66e886a commit 191658d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/FixedMathSharp/Numerics/Vector3d.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ public static Vector3d Slerp(Vector3d start, Vector3d end, Fixed64 percent)
596596
// Clamp it to be in the range of Acos()
597597
// This may be unnecessary, but floating point
598598
// precision can be a fickle mistress.
599-
FixedMath.Clamp(dot, -Fixed64.One, Fixed64.One);
599+
dot = FixedMath.Clamp(dot, -Fixed64.One, Fixed64.One);
600600
// Acos(dot) returns the angle between start and end,
601601
// And multiplying that by percent returns the angle between
602602
// start and the final result.

0 commit comments

Comments
 (0)