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

Method within

perro_source/api_modules/perro_runtime_api/src/sub_apis/node.rs:1020–1025  ·  view source on GitHub ↗

Adds a spatial filter: node global position must lie inside an axis-aligned box. `origin` is the box center in global space; `size` is the full box extent. Pass [`Vector2`]s to match 2D nodes or [`Vector3`]s to match 3D nodes; nodes of the other dimensionality (and non-spatial nodes) never match.

(self, origin: V, size: V)

Source from the content-addressed store, hash-verified

1018 self.and_expr(QueryExpr::Mask(BitMask::from_layers(layers)))
1019 }
1020
1021 /// Adds a spatial filter: node global position must lie inside an
1022 /// axis-aligned box.
1023 ///
1024 /// `origin` is the box center in global space; `size` is the full box
1025 /// extent. Pass [`Vector2`]s to match 2D nodes or [`Vector3`]s to match
1026 /// 3D nodes; nodes of the other dimensionality (and non-spatial nodes)
1027 /// never match.
1028 pub fn within<V>(self, origin: V, size: V) -> Self

Callers

nothing calls this directly

Calls 1

and_exprMethod · 0.80

Tested by

no test coverage detected