diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2020-11-10 14:30:02 -0500 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2020-11-10 14:30:07 -0500 |
commit | ee79fc627c18d26221adeae2b641ba81ba662184 (patch) | |
tree | 1a131ddc44aaa01c3b639b879c4028a4b840a2b5 /core | |
parent | a80ec80b57f419d84d196fb46dcb5f194c880001 (diff) |
Minor clamp and float fixes
Diffstat (limited to 'core')
-rw-r--r-- | core/math/transform_2d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/transform_2d.cpp b/core/math/transform_2d.cpp index 180aeaa0af..00e561f973 100644 --- a/core/math/transform_2d.cpp +++ b/core/math/transform_2d.cpp @@ -251,7 +251,7 @@ Transform2D Transform2D::interpolate_with(const Transform2D &p_transform, real_t real_t dot = v1.dot(v2); - dot = (dot < -1.0) ? -1.0 : ((dot > 1.0) ? 1.0 : dot); //clamp dot to [-1,1] + dot = CLAMP(dot, -1.0, 1.0); Vector2 v; |