Point Class
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
Numberposition of the point on the x axis
-
y
Numberposition of the point on the y axis
Methods
fromArray
(
-
array
Creates a pixi matrix object based on the array given as a parameter
Parameters:
-
array
ArrayThe array that the matrix will be filled with
toArray
(
Array
-
transpose
Creates an array from the current Matrix object
Parameters:
-
transpose
BooleanWhether 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