mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-14 07:13:14 +00:00
Fix IsNormalized to match the corresponding procedure in box2d
This commit is contained in:
2
vendor/box2d/math_functions.odin
vendored
2
vendor/box2d/math_functions.odin
vendored
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user