diff options
| author | Fredrik Malmer <fmalmer@blizzard.com> | 2025-10-18 01:18:50 +0200 |
|---|---|---|
| committer | Fredrik Malmer <fmalmer@blizzard.com> | 2025-10-18 01:18:50 +0200 |
| commit | 652eadf13526b2d67eeadab420b03c52be60ab5d (patch) | |
| tree | 69389ec4c3ed9bfe8bccc4afded5d3e16f92552b /vendor | |
| parent | 2550be59ef7812a4998a224b32eb9ee52192fb47 (diff) | |
Fix IsNormalized to match the corresponding procedure in box2d
Diffstat (limited to 'vendor')
| -rw-r--r-- | vendor/box2d/math_functions.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/box2d/math_functions.odin b/vendor/box2d/math_functions.odin index 33f01ebd1..c2d197f08 100644 --- a/vendor/box2d/math_functions.odin +++ b/vendor/box2d/math_functions.odin @@ -247,7 +247,7 @@ Normalize :: proc "c" (v: Vec2) -> Vec2 { @(require_results) IsNormalized :: proc "c" (v: Vec2) -> bool { aa := Dot(v, v) - return abs(1. - aa) < 10. * EPSILON + return abs(1. - aa) < 100. * EPSILON } @(require_results) |