class js.html.Point

Available on js

The Point class offers methods for performing common geometry operations on two dimensional points.

Documentation for this class was provided by MDN.

Instance Fields

var x:Float

var y:Float

function new(?arg0:Dynamic, ?arg1:Dynamic):Void

Creates a new Point object.

let p = new Point(x, y);

The new point, p, has the specified X and Y coordinates.