MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / bounds_point_contains

Function bounds_point_contains

StereoKitC/intersect.cpp:84–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82///////////////////////////////////////////
83
84bool32_t bounds_point_contains(bounds_t bounds, vec3 pt) {
85 pt = vec3_abs(pt - bounds.center) * 2;
86 return
87 pt.x <= bounds.dimensions.x &&
88 pt.y <= bounds.dimensions.y &&
89 pt.z <= bounds.dimensions.z;
90}
91
92///////////////////////////////////////////
93

Callers 1

bounds_line_containsFunction · 0.85

Calls 1

vec3_absFunction · 0.85

Tested by

no test coverage detected