Skip to main content

RectUtils

Utility method to work with the Roblox Rect data object.

Functions

contains

RectUtils.contains(
rectRect,
positionVector2
) → boolean

Returns true if the position is contained within the rect

Show raw api
{
    "functions": [
        {
            "name": "contains",
            "desc": "Returns true if the position is contained within the rect",
            "params": [
                {
                    "name": "rect",
                    "desc": "",
                    "lua_type": "Rect"
                },
                {
                    "name": "position",
                    "desc": "",
                    "lua_type": "Vector2"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 17,
                "path": "src/rectutils/src/Shared/RectUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "RectUtils",
    "desc": "Utility method to work with the Roblox Rect data object.",
    "source": {
        "line": 6,
        "path": "src/rectutils/src/Shared/RectUtils.lua"
    }
}