Fix IsNormalized to match the corresponding procedure in box2d

This commit is contained in:
Fredrik Malmer
2025-10-18 01:18:50 +02:00
parent 2550be59ef
commit 652eadf135

View File

@@ -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)