Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Point

<static> Negative(point, [out])

Description:

Inverts a Point's coordinates.

Parameters:

name type arguments description
point Phaser.Geom.Point

The Point to invert.

out Phaser.Geom.Point <optional>

The Point to return the inverted coordinates in.

Returns:
Description:

The modified out Point, or a new Point if none was provided.

Since: 3.0.0
Source: src/geom/point/Negative.js (Line 9)