toArray
Returns the point coordinates as an [x, y] array.
Parameters
digits Number
(Optional) Number of fractional digits.
Returns
Array
An array representation of the point, e.g. [10, 20]
In this article
Returns the point coordinates as an [x, y] array.
Number
(Optional) Number of fractional digits.
Array
An array representation of the point, e.g. [10, 20]