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

Function point_is_inside_rect

src/engine.rs:854–859  ·  view source on GitHub ↗
(point: Vector2, rect: BoundingBox)

Source from the content-addressed store, hash-verified

852}
853
854fn point_is_inside_rect(point: Vector2, rect: BoundingBox) -> bool {
855 point.x >= rect.x
856 && point.x <= rect.x + rect.width
857 && point.y >= rect.y
858 && point.y <= rect.y + rect.height
859}
860
861#[derive(Debug, Clone, Copy)]
862struct ScrollbarAxisGeometry {

Callers 3

set_pointer_stateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected