INNER CODE UNIT · C++

minB

novelrt/NovelRT · Maths/GeoBounds.cpp:34

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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…