Skip to main content

QFrame

CFrame representation as a quaternion. Alternative representation of a CFrame.

Functions

new

QFrame.new(
xnumber?,
ynumber?,
znumber?,
Wnumber?,
Xnumber?,
Ynumber?,
Znumber?
) → QFrame

Constructs a new QFrame

isQFrame

QFrame.isQFrame(valueany) → boolean

Returns whether a value is a QFrame

fromCFrameClosestTo

QFrame.fromCFrameClosestTo(
cframeCFrame,
closestToQFrame
) → QFrame

Gets the QFrame closest to that CFrame

fromVector3

QFrame.fromVector3(
vectorVector3,
qFrameQFrame
) → QFrame

Constructs a QFrame from a position and another QFrame rotation.

toCFrame

QFrame.toCFrame(selfQFrame) → CFrame

Converts the QFrame to a CFrame

toPosition

QFrame.toPosition(selfQFrame) → Vector3

Converts the QFrame to a Vector3 position

isNAN

QFrame.isNAN(aQFrame) → boolean

Returns true if the QFrame contains a NaN value.

__unm

QFrame.__unm(aQFrame) → QFrame

Inverts the QFrame

__add

QFrame.__add(
aQFrame,
bQFrame
) → QFrame

Adds the QFrames together

__sub

QFrame.__sub(
aQFrame,
bQFrame
) → QFrame

Subtracts the QFrames together

__pow

QFrame.__pow(
aQFrame,
bnumber
) → QFrame

Takes the QFrame to the power, using quaternion power formula.

__mul

QFrame.__mul(
aQFrame | number,
bQFrame | number
) → QFrame

Multiplies the QFrames together

__div

QFrame.__div(
aQFrame,
bnumber
) → QFrame

Divides the QFrame by the number

__eq

QFrame.__eq(
aQFrame,
bQFrame
) → boolean

Compares the QFrame for equality.

Show raw api
{
    "functions": [
        {
            "name": "new",
            "desc": "Constructs a new QFrame",
            "params": [
                {
                    "name": "x",
                    "desc": "",
                    "lua_type": "number?"
                },
                {
                    "name": "y",
                    "desc": "",
                    "lua_type": "number?"
                },
                {
                    "name": "z",
                    "desc": "",
                    "lua_type": "number?"
                },
                {
                    "name": "W",
                    "desc": "",
                    "lua_type": "number?"
                },
                {
                    "name": "X",
                    "desc": "",
                    "lua_type": "number?"
                },
                {
                    "name": "Y",
                    "desc": "",
                    "lua_type": "number?"
                },
                {
                    "name": "Z",
                    "desc": "",
                    "lua_type": "number?"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "QFrame"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 21,
                "path": "src/qframe/src/Shared/QFrame.lua"
            }
        },
        {
            "name": "isQFrame",
            "desc": "Returns whether a value is a QFrame",
            "params": [
                {
                    "name": "value",
                    "desc": "",
                    "lua_type": "any"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 39,
                "path": "src/qframe/src/Shared/QFrame.lua"
            }
        },
        {
            "name": "fromCFrameClosestTo",
            "desc": "Gets the QFrame closest to that CFrame",
            "params": [
                {
                    "name": "cframe",
                    "desc": "",
                    "lua_type": "CFrame"
                },
                {
                    "name": "closestTo",
                    "desc": "",
                    "lua_type": "QFrame"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "QFrame"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 49,
                "path": "src/qframe/src/Shared/QFrame.lua"
            }
        },
        {
            "name": "fromVector3",
            "desc": "Constructs a QFrame from a position and another QFrame rotation.",
            "params": [
                {
                    "name": "vector",
                    "desc": "",
                    "lua_type": "Vector3"
                },
                {
                    "name": "qFrame",
                    "desc": "",
                    "lua_type": "QFrame"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "QFrame"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 74,
                "path": "src/qframe/src/Shared/QFrame.lua"
            }
        },
        {
            "name": "toCFrame",
            "desc": "Converts the QFrame to a [CFrame]",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "QFrame"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "CFrame"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 86,
                "path": "src/qframe/src/Shared/QFrame.lua"
            }
        },
        {
            "name": "toPosition",
            "desc": "Converts the QFrame to a [Vector3] position",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "QFrame"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Vector3"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 100,
                "path": "src/qframe/src/Shared/QFrame.lua"
            }
        },
        {
            "name": "isNAN",
            "desc": "Returns true if the QFrame contains a NaN value.",
            "params": [
                {
                    "name": "a",
                    "desc": "",
                    "lua_type": "QFrame"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 109,
                "path": "src/qframe/src/Shared/QFrame.lua"
            }
        },
        {
            "name": "__unm",
            "desc": "Inverts the QFrame",
            "params": [
                {
                    "name": "a",
                    "desc": "",
                    "lua_type": "QFrame"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "QFrame"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 119,
                "path": "src/qframe/src/Shared/QFrame.lua"
            }
        },
        {
            "name": "__add",
            "desc": "Adds the QFrames together",
            "params": [
                {
                    "name": "a",
                    "desc": "",
                    "lua_type": "QFrame"
                },
                {
                    "name": "b",
                    "desc": "",
                    "lua_type": "QFrame"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "QFrame"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 129,
                "path": "src/qframe/src/Shared/QFrame.lua"
            }
        },
        {
            "name": "__sub",
            "desc": "Subtracts the QFrames together",
            "params": [
                {
                    "name": "a",
                    "desc": "",
                    "lua_type": "QFrame"
                },
                {
                    "name": "b",
                    "desc": "",
                    "lua_type": "QFrame"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "QFrame"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 142,
                "path": "src/qframe/src/Shared/QFrame.lua"
            }
        },
        {
            "name": "__pow",
            "desc": "Takes the QFrame to the power, using quaternion power formula.",
            "params": [
                {
                    "name": "a",
                    "desc": "",
                    "lua_type": "QFrame"
                },
                {
                    "name": "b",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "QFrame"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 155,
                "path": "src/qframe/src/Shared/QFrame.lua"
            }
        },
        {
            "name": "__mul",
            "desc": "Multiplies the QFrames together",
            "params": [
                {
                    "name": "a",
                    "desc": "",
                    "lua_type": "QFrame | number"
                },
                {
                    "name": "b",
                    "desc": "",
                    "lua_type": "QFrame | number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "QFrame"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 208,
                "path": "src/qframe/src/Shared/QFrame.lua"
            }
        },
        {
            "name": "__div",
            "desc": "Divides the QFrame by the number",
            "params": [
                {
                    "name": "a",
                    "desc": "",
                    "lua_type": "QFrame"
                },
                {
                    "name": "b",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "QFrame"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 238,
                "path": "src/qframe/src/Shared/QFrame.lua"
            }
        },
        {
            "name": "__eq",
            "desc": "Compares the QFrame for equality.",
            "params": [
                {
                    "name": "a",
                    "desc": "",
                    "lua_type": "QFrame"
                },
                {
                    "name": "b",
                    "desc": "",
                    "lua_type": "QFrame"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 252,
                "path": "src/qframe/src/Shared/QFrame.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "QFrame",
    "desc": "CFrame representation as a quaternion. Alternative representation of a [CFrame].",
    "source": {
        "line": 5,
        "path": "src/qframe/src/Shared/QFrame.lua"
    }
}