Fix IsNormalized to match the corresponding procedure in box2d
This commit is contained in:
1 parent
2550be59ef
commit
652eadf135
1 file changed
+1
-1
Vendored
+1
-1
@@ -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