A basic point consisting of two Integers - X and Y

Usage:

  • Initialize using IntPoint.get() var point = IntPoint.get(0, 0);
  • Or with an array var point:IntPoint = [0, 1];
  • Recycle points when you're done with them: my_point.put()

Variables

@:implread onlyangle:Float

@:implread onlylength:Float

@:implx:Int

@:imply:Int

Methods

@:implinlinecopy ():IntPoint

@:implinlinecopy_from (this:Array<Int>):IntPoint

@:implinlinedistance (this:Array<Int>):Float

@:implinlineequals (this:Array<Int>):Bool

@:implinlineput ():Void

@:value({ y : 0, x : 0 })@:implinlineset (this:Array<Int>, x:Int = 0):Array<Int>

@:implinlinetoString ():String

Static methods

@:value({ y : 0, x : 0 })staticget (x:Int = 0, y:Int = 0):IntPoint