API Docs for: 1.5.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

Properties

Methods

clone

() Point

Creates a clone of this point

Returns:

Point:

a copy of the point

fromArray

(
  • array
)

Creates a pixi matrix object based on the array given as a parameter

Parameters:

  • array Array

    The array that the matrix will be filled with

toArray

(
  • transpose
)
Array

Creates an array from the current Matrix object

Parameters:

  • transpose Boolean

    Whether we need to transpose the matrix or not

Returns:

Array:

array the newly created array which contains the matrix

Properties

x

Number

Default: 0

y

Number

Default: 0