MCPcopy Create free account
hub / github.com/PerroEngine/Perro / contains

Method contains

perro_source/core/perro_ui/src/layout.rs:22–26  ·  view source on GitHub ↗
(self, point: Vector2)

Source from the content-addressed store, hash-verified

20 }
21
22 pub fn contains(self, point: Vector2) -> bool {
23 let min = self.min();
24 let max = self.max();
25 point.x >= min.x && point.x <= max.x && point.y >= min.y && point.y <= max.y
26 }
27
28 pub fn contains_rounded(self, point: Vector2, corner_radius: f32) -> bool {
29 if !self.contains(point) {

Callers 15

predicate_matchesMethod · 0.45
is_builtin_mesh_sourceFunction · 0.45
parseMethod · 0.45
validate_node_refsFunction · 0.45
contains_roundedMethod · 0.45
ensure_script_allowsFunction · 0.45
parse_inherent_methodsFunction · 0.45

Calls 2

minMethod · 0.45
maxMethod · 0.45