INNER CODE UNIT · C++
maxA
novelrt/NovelRT · Maths/GeoBounds.cpp:32
auto maxA = position + GetExtents();
auto minB = otherBounds.position - otherBounds.GetExtents();
auto maxB = otherBounds.position + otherBounds.GetExtents();
return !((minA > maxB) || (maxA < minB));
}
GeoVector2F GeoBounds::GetCornerInLocalSpace(int32_t index) const noexcept
{
GeoVector2F returnValue;
auto boundsSize = size;
switch (index)
{
case 0:
returnValue = GeoVector2F(-(boundsSize.x / 2), -(boundsSize.y / 2));
break;
case 1: