npm install --save @vx/point
A simple class to represent an x, y coordinate.
import { Point } from '@vx/point';
let point = new Point({ x: 2, y: 3 });
let {x, y} = point.value() // Get the cords from the point
let array = point.toArray() // Convert point to array
Returns an {x, y}
object with the x and y coordinates.
Returns the coordinates as an array [x, y]
.