Minor clamp and float fixes
This commit is contained in:
parent
a80ec80b57
commit
ee79fc627c
3 changed files with 10 additions and 11 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue