INNER CODE UNIT · C++

maxB

novelrt/NovelRT · Maths/GeoBounds.cpp:35

        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:
                returnValue = GeoVector2F(+(boundsSize.x / 2), -(boundsSize.y / 2));
                break;
            case 2:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…