class quick_haxe.Geometry2D
Available on all platforms
Class Fields
static function angleFromAtoB(aX:Float, aY:Float, bX:Float, bY:Float):Float
Get the angle in radians from point A to point B (Angle is from the y axis)
aX | Point A - X Position |
ay | Point A - Y Position |
bx | Point B - X Position |
by | Point B - Y Position |
returns | squared distance between the two objects |
static function distance(aX:Float, aY:Float, bX:Float, bY:Float):Float
Get the distance between two points
aX | Point A - X Position |
ay | Point A - Y Position |
bx | Point B - X Position |
by | Point B - Y Position |
returns | distance between the two points |
static function distanceSquared(aX:Float, aY:Float, bX:Float, bY:Float):Float
Get the distance squared between two points (more computationally efficient than getting the unsquared distance as it does not need to calculate the square root)
aX | Point A - X Position |
ay | Point A - Y Position |
bx | Point B - X Position |
by | Point B - Y Position |
returns | squared distance between the two objects |