MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / get_Extensions

Method get_Extensions

ogsr_engine/xrGame/PHShell.cpp:1536–1550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1534}
1535
1536void CPHShell::get_Extensions(const Fvector& axis, float center_prg, float& lo_ext, float& hi_ext)
1537{
1538 lo_ext = dInfinity;
1539 hi_ext = -dInfinity;
1540 ELEMENT_I i = elements.begin(), e = elements.end();
1541 for (; i != e; ++i)
1542 {
1543 float temp_lo_ext, temp_hi_ext;
1544 (*i)->get_Extensions(axis, center_prg, temp_lo_ext, temp_hi_ext);
1545 if (lo_ext > temp_lo_ext)
1546 lo_ext = temp_lo_ext;
1547 if (hi_ext < temp_hi_ext)
1548 hi_ext = temp_hi_ext;
1549 }
1550}
1551
1552const CGID& CPHShell::GetCLGroup() const { return CPHCollideValidator::GetGroup(*this); }
1553

Callers 5

get_boxFunction · 0.45
InitMethod · 0.45
IsInAreaMethod · 0.45
GetExitPositionMethod · 0.45
TestPassMethod · 0.45

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by 1

TestPassMethod · 0.36