INNER CODE UNIT · C++

returnValue

novelrt/NovelRT · Maths/GeoBounds.cpp:47

                returnValue = GeoVector2F(-(boundsSize.x / 2), -(boundsSize.y / 2));
                break;
            case 1:
                returnValue = GeoVector2F(+(boundsSize.x / 2), -(boundsSize.y / 2));
                break;
            case 2:
                returnValue = GeoVector2F(+(boundsSize.x / 2), +(boundsSize.y / 2));
                break;
            case 3:
                returnValue = GeoVector2F(-(boundsSize.x / 2), +(boundsSize.y / 2));
                break;
        }

        returnValue.RotateToAngleAroundPointDeg(rotation, position);
        return returnValue;
    }

    GeoVector2F GeoBounds::GetCornerInWorldSpace(int32_t index) const noexcept

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…