API Docs for: 2.0.0
Show:

Point Class

Module: PIXI

The Point object represents a location in a two-dimensional coordinate system, where x represents the horizontal axis and y represents the vertical axis.

Constructor

Point

(
  • x
  • y
)

Parameters:

  • x Number

    position of the point on the x axis

  • y Number

    position of the point on the y axis

Item Index

Methods

Properties

Methods

clone

() Point

Creates a clone of this point

Returns:

Point:

a copy of the point

set

(
  • [x=0]
  • [y=0]
)

Sets the point to a new x and y position. If y is omitted, both x and y will be set to x.

Parameters:

  • [x=0] Number optional

    position of the point on the x axis

  • [y=0] Number optional

    position of the point on the y axis

Properties

x

Number

Default: 0

y

Number

Default: 0