package { /** * @author nicoptere */ public class Point { public var id:int; public var x:Number; public var y:Number; public function Point( x:Number, y:Number, id:int = -1 ) { this.x = x; this.y = y; if( id != -1 ) this.id = id; } public function Equals2D( other:Point ):Boolean { return ( x == other.x && y == other.y ); } } }