Skip to main content

PolyBezier

The class used to construct PolyBézier curves.

PolyBézier curves, or composite Bézier curves, are multiple Bézier curves that are joined end to end. This module guarantees a C¹ continuity between the curves, which means that the position and derivative are the same in the connection points.

The module can be installed here.

Functions

new

PolyBezier.new(
curves{BezierCurve}?--

The optional array of curves

) → PolyBezierCurve

Constructs a new PolyBezierCurve from an array of BezierCurves. The array is optional, the class doesn't necessarily has to have curves added to it.

Show raw api
{
    "functions": [
        {
            "name": "new",
            "desc": "Constructs a new [PolyBezierCurve] from an array of [BezierCurve]s.\nThe array is optional, the class doesn't necessarily has to have curves added to it.",
            "params": [
                {
                    "name": "curves",
                    "desc": "The optional array of curves",
                    "lua_type": "{BezierCurve}?"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "PolyBezierCurve"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 55,
                "path": "src/PolyBezier.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "PolyBezier",
    "desc": "The class used to construct PolyBézier curves.\n\nPolyBézier curves, or composite Bézier curves, are multiple\nBézier curves that are joined end to end. This module guarantees\na C¹ continuity between the curves, which means that the position\nand derivative are the same in the connection points.\n\nThe module can be installed [here](https://www.roblox.com/library/11603069195).",
    "source": {
        "line": 26,
        "path": "src/PolyBezier.lua"
    }
}