mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Merge pull request #5823 from Malmer/fix/box2d-math-functions
Fix source mismatches in vendor:box2d math functions
This commit is contained in:
Vendored
+2
-2
@@ -3,7 +3,7 @@ package vendor_box2d
|
|||||||
import "core:c"
|
import "core:c"
|
||||||
import "core:math"
|
import "core:math"
|
||||||
|
|
||||||
EPSILON :: 1e-23
|
EPSILON :: math.F32_EPSILON
|
||||||
|
|
||||||
Vec2 :: [2]f32
|
Vec2 :: [2]f32
|
||||||
|
|
||||||
@@ -247,7 +247,7 @@ Normalize :: proc "c" (v: Vec2) -> Vec2 {
|
|||||||
@(require_results)
|
@(require_results)
|
||||||
IsNormalized :: proc "c" (v: Vec2) -> bool {
|
IsNormalized :: proc "c" (v: Vec2) -> bool {
|
||||||
aa := Dot(v, v)
|
aa := Dot(v, v)
|
||||||
return abs(1. - aa) < 10. * EPSILON
|
return abs(1. - aa) < 100. * EPSILON
|
||||||
}
|
}
|
||||||
|
|
||||||
@(require_results)
|
@(require_results)
|
||||||
|
|||||||
Reference in New Issue
Block a user