class openfl.geom.Point

Class Fields

static function distance(pt1:Point, pt2:Point): Float

static function interpolate(pt1:Point, pt2:Point, f:Float): Point

static function polar(len:Float, angle:Float): Point

Instance Fields

var x:Float

var y:Float

function new(?x:Float, ?y:Float): Void

function add(v:Point): Point

function clone(): Point

function copyFrom(sourcePoint:Point): Void

function equals(toCompare:Point): Bool

function normalize(thickness:Float): Void

function offset(dx:Float, dy:Float): Void

function setTo(xa:Float, ya:Float): Void

function subtract(v:Point): Point

function toString(): String