MCPcopy Create free account
hub / github.com/brenocq/implot3d / Expand

Method Expand

implot3d.cpp:3510–3517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3508//-----------------------------------------------------------------------------
3509
3510void ImPlot3DBox::Expand(const ImPlot3DPoint& point) {
3511 Min.x = ImMin(Min.x, point.x);
3512 Min.y = ImMin(Min.y, point.y);
3513 Min.z = ImMin(Min.z, point.z);
3514 Max.x = ImMax(Max.x, point.x);
3515 Max.y = ImMax(Max.y, point.y);
3516 Max.z = ImMax(Max.z, point.z);
3517}
3518
3519bool ImPlot3DBox::Contains(const ImPlot3DPoint& point) const {
3520 return (point.x >= Min.x && point.x <= Max.x) && (point.y >= Min.y && point.y <= Max.y) && (point.z >= Min.z && point.z <= Max.z);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected