Skip to main content

AxisAngleUtils

Utility functions for axis angles.

Functions

toCFrame

AxisAngleUtils.toCFrame(
axisAngleVector3,
positionVector3
) → CFrame

Converts an AxisAngle and position to a CFrame

fromCFrame

AxisAngleUtils.fromCFrame(cframeCFrame) → (
Vector3,--

AxisAngle

Vector3--

position

)

Converts a CFrame to an AxisAngle and position

Show raw api
{
    "functions": [
        {
            "name": "toCFrame",
            "desc": "Converts an AxisAngle and position to a CFrame",
            "params": [
                {
                    "name": "axisAngle",
                    "desc": "",
                    "lua_type": "Vector3"
                },
                {
                    "name": "position",
                    "desc": "",
                    "lua_type": "Vector3"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "CFrame"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 15,
                "path": "src/axisangleutils/src/Shared/AxisAngleUtils.lua"
            }
        },
        {
            "name": "fromCFrame",
            "desc": "Converts a CFrame to an AxisAngle and position",
            "params": [
                {
                    "name": "cframe",
                    "desc": "",
                    "lua_type": "CFrame"
                }
            ],
            "returns": [
                {
                    "desc": "AxisAngle",
                    "lua_type": "Vector3"
                },
                {
                    "desc": "position",
                    "lua_type": "Vector3"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 41,
                "path": "src/axisangleutils/src/Shared/AxisAngleUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "AxisAngleUtils",
    "desc": "Utility functions for axis angles.",
    "source": {
        "line": 5,
        "path": "src/axisangleutils/src/Shared/AxisAngleUtils.lua"
    }
}