Skip to main content

OrthogonalUtils

Utilities involving orthogonal Vector3s

Functions

decomposeCFrameToVectors

OrthogonalUtils.decomposeCFrameToVectors(cframeCFrame) → ()

Decompose the CFrame return { Vector3 }

getClosestVector

OrthogonalUtils.getClosestVector(
options{Vector3},--

normals

unitVectorVector3
) → ()

Gets the closest vectors to another vector.

return Vector3?

snapCFrameTo

OrthogonalUtils.snapCFrameTo(
cframeCFrame,
snapToCFrameCFrame
) → ()

Snaps a CFrame to another one

return CFrame

Show raw api
{
    "functions": [
        {
            "name": "decomposeCFrameToVectors",
            "desc": "Decompose the CFrame\nreturn { Vector3 }",
            "params": [
                {
                    "name": "cframe",
                    "desc": "",
                    "lua_type": "CFrame"
                }
            ],
            "returns": [],
            "function_type": "static",
            "source": {
                "line": 13,
                "path": "src/geometryutils/src/Shared/OrthogonalUtils.lua"
            }
        },
        {
            "name": "getClosestVector",
            "desc": "Gets the closest vectors to another vector.\n\nreturn Vector3?",
            "params": [
                {
                    "name": "options",
                    "desc": "normals",
                    "lua_type": "{ Vector3 }"
                },
                {
                    "name": "unitVector",
                    "desc": "",
                    "lua_type": "Vector3"
                }
            ],
            "returns": [],
            "function_type": "static",
            "source": {
                "line": 31,
                "path": "src/geometryutils/src/Shared/OrthogonalUtils.lua"
            }
        },
        {
            "name": "snapCFrameTo",
            "desc": "Snaps a CFrame to another one\n\nreturn CFrame",
            "params": [
                {
                    "name": "cframe",
                    "desc": "",
                    "lua_type": "CFrame"
                },
                {
                    "name": "snapToCFrame",
                    "desc": "",
                    "lua_type": "CFrame"
                }
            ],
            "returns": [],
            "function_type": "static",
            "source": {
                "line": 52,
                "path": "src/geometryutils/src/Shared/OrthogonalUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "OrthogonalUtils",
    "desc": "Utilities involving orthogonal Vector3s",
    "source": {
        "line": 5,
        "path": "src/geometryutils/src/Shared/OrthogonalUtils.lua"
    }
}