Home

function: exports


exports(fromX: number, fromY: number, cpX: number, cpY: number, cpX2: number, cpY2: number, toX: number, toY: number, path: Array.<number>): Array.<number>

Calculate the points for a bezier curve and then draws it.

Ignored from docs since it is not directly exposed.

Params:

Name Type Attribute Description
fromX

Starting point x

fromY

Starting point y

cpX

Control point x

cpY

Control point y

cpX2

Second Control point x

cpY2

Second Control point y

toX

Destination point x

toY

Destination point y

path

Path array to push points into

Returns:

Array.<number>

  {
    "comment": "/**\n * Calculate the points for a bezier curve and then draws it.\n *\n * Ignored from docs since it is not directly exposed.\n *\n * @ignore\n * @param {number} fromX - Starting point x\n * @param {number} fromY - Starting point y\n * @param {number} cpX - Control point x\n * @param {number} cpY - Control point y\n * @param {number} cpX2 - Second Control point x\n * @param {number} cpY2 - Second Control point y\n * @param {number} toX - Destination point x\n * @param {number} toY - Destination point y\n * @param {number[]} [path=[]] - Path array to push points into\n * @return {number[]} Array of points of the curve\n */",
    "meta": {
        "range": [
            615,
            1245
        ],
        "filename": "bezierCurveTo.js",
        "lineno": 18,
        "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\graphics\\utils",
        "code": {
            "id": "astnode100012375",
            "name": "module.exports",
            "type": "FunctionDeclaration",
            "paramnames": [
                "fromX",
                "fromY",
                "cpX",
                "cpY",
                "cpX2",
                "cpY2",
                "toX",
                "toY",
                "path"
            ]
        }
    },
    "description": "

Calculate the points for a bezier curve and then draws it.

\n

Ignored from docs since it is not directly exposed.

", "ignore": true, "params": [ { "type": { "names": [ "number" ] }, "description": "

Starting point x

", "name": "fromX" }, { "type": { "names": [ "number" ] }, "description": "

Starting point y

", "name": "fromY" }, { "type": { "names": [ "number" ] }, "description": "

Control point x

", "name": "cpX" }, { "type": { "names": [ "number" ] }, "description": "

Control point y

", "name": "cpY" }, { "type": { "names": [ "number" ] }, "description": "

Second Control point x

", "name": "cpX2" }, { "type": { "names": [ "number" ] }, "description": "

Second Control point y

", "name": "cpY2" }, { "type": { "names": [ "number" ] }, "description": "

Destination point x

", "name": "toX" }, { "type": { "names": [ "number" ] }, "description": "

Destination point y

", "name": "toY" }, { "type": { "names": [ "Array." ] }, "optional": true, "defaultvalue": "[]", "description": "

Path array to push points into

", "name": "path" } ], "returns": [ { "type": { "names": [ "Array." ] }, "description": "

Array of points of the curve

" } ], "name": "exports", "longname": "module.exports", "kind": "function", "memberof": "module", "scope": "static", "___id": "T000002R001155", "___s": true, "filepath": "core\\graphics\\utils\\bezierCurveTo.js" }