MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / float_equal

Function float_equal

src/engine.rs:849–852  ·  view source on GitHub ↗
(left: f32, right: f32)

Source from the content-addressed store, hash-verified

847}
848
849fn float_equal(left: f32, right: f32) -> bool {
850 let diff = left - right;
851 diff < EPSILON && diff > -EPSILON
852}
853
854fn point_is_inside_rect(point: Vector2, rect: BoundingBox) -> bool {
855 point.x >= rect.x

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected