Skip to main content

UIRotationUtils

Functions

toUnitCircle

UIRotationUtils.toUnitCircle(rotationDegreesnumber) → number

Converts a rotation to the unit circle

toUnitCircleDirection

UIRotationUtils.toUnitCircleDirection(rotationDegreesnumber) → Vector2

Converts a rotation to the unit circle direction

toGuiDirection

UIRotationUtils.toGuiDirection(unitCircleDirectionVector2) → Vector2

Converts a rotation to the gui rotation vector

Show raw api
{
    "functions": [
        {
            "name": "toUnitCircle",
            "desc": "Converts a rotation to the unit circle",
            "params": [
                {
                    "name": "rotationDegrees",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "number\n"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 13,
                "path": "src/uiobjectutils/src/Client/UIRotationUtils.lua"
            }
        },
        {
            "name": "toUnitCircleDirection",
            "desc": "Converts a rotation to the unit circle direction",
            "params": [
                {
                    "name": "rotationDegrees",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Vector2\n"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 22,
                "path": "src/uiobjectutils/src/Client/UIRotationUtils.lua"
            }
        },
        {
            "name": "toGuiDirection",
            "desc": "Converts a rotation to the gui rotation vector",
            "params": [
                {
                    "name": "unitCircleDirection",
                    "desc": "",
                    "lua_type": "Vector2"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Vector2\n"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 36,
                "path": "src/uiobjectutils/src/Client/UIRotationUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "UIRotationUtils",
    "desc": "",
    "source": {
        "line": 5,
        "path": "src/uiobjectutils/src/Client/UIRotationUtils.lua"
    }
}