Home

function: getGlobalPosition


getGlobalPosition(point: Point, skipUpdate: boolean): Point

Returns the global position of the displayObject. Does not depend on object scale, rotation and pivot.

Params:

Name Type Attribute Description
point

the point to write the global value to. If null a new point will be returned

skipUpdate

setting to true will stop the transforms of the scene graph from
being updated. This means the calculation returned MAY be out of date BUT will give you a
nice performance boost

Returns:

Point

  {
    "comment": "/**\n * Returns the global position of the displayObject. Does not depend on object scale, rotation and pivot.\n *\n * @memberof PIXI.DisplayObject#\n * @param {Point} point - the point to write the global value to. If null a new point will be returned\n * @param {boolean} skipUpdate - setting to true will stop the transforms of the scene graph from\n *  being updated. This means the calculation returned MAY be out of date BUT will give you a\n *  nice performance boost\n * @return {Point} The updated point\n */",
    "meta": {
        "range": [
            543,
            875
        ],
        "filename": "getGlobalPosition.js",
        "lineno": 13,
        "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\extras",
        "code": {
            "id": "astnode100054660",
            "name": "core.DisplayObject.prototype.getGlobalPosition",
            "type": "FunctionExpression",
            "value": "getGlobalPosition",
            "paramnames": [
                "point",
                "skipUpdate"
            ]
        },
        "vars": {
            "point.x": "point.x",
            "point.y": "point.y"
        }
    },
    "description": "

Returns the global position of the displayObject. Does not depend on object scale, rotation and pivot.

", "memberof": "PIXI.DisplayObject#core.DisplayObject", "params": [ { "type": { "names": [ "Point" ] }, "description": "

the point to write the global value to. If null a new point will be returned

", "name": "point" }, { "type": { "names": [ "boolean" ] }, "description": "

setting to true will stop the transforms of the scene graph from
being updated. This means the calculation returned MAY be out of date BUT will give you a
nice performance boost

", "name": "skipUpdate" } ], "returns": [ { "type": { "names": [ "Point" ] }, "description": "

The updated point

" } ], "name": "getGlobalPosition", "longname": "PIXI.DisplayObject#core.DisplayObject#getGlobalPosition", "kind": "function", "scope": "instance", "___id": "T000002R005170", "___s": true, "filepath": "extras\\getGlobalPosition.js" }