class jive.geom.IntPoint
A point with x and y coordinates in int. @author paling
Class Fields
Instance Fields
function distance(p:IntPoint): Int
Returns the distance between this point and passing point.
| p | the another point. |
| returns | the distance from this to p. |
function distanceSq(p:IntPoint): Int
Returns the distance square between this point and passing point.
| p | the another point. |
| returns | the distance square from this to p. |
function equals(o:Dynamic): Bool
Returns whether or not this passing object is a same value point.
| toCompare | the object to be compared. |
| returns | equals or not. |
function move(dx:Int, dy:Int): IntPoint
Moves this point and return itself.
| dx | delta of x. |
| dy | delta of y. |
| returns | the point itself. |
function moveRadians(direction:Float, distance:Float): IntPoint
Moves this point with an direction in radians and distance, then return itself.
| angle | the angle in radians. |
| distance | the distance in pixels. |
| returns | the point itself. |
function nextPoint(direction:Float, distance:Float): IntPoint
Returns the point beside this point with direction and distance.
| returns | the point beside. |
function setLocation(p:IntPoint): Void
Sets the location of this point as same as point p.
| p | the location to be set. |
function setLocationXY(?x:Int, ?y:Int): Void
Sets the location of this point with x and y.
| x | the x coordinates. |
| y | the y coordinates. |
function setWithPoint(p:Point): Void
Sets the location with a Point, the value will be transfer to int.
| p | the location to be set. |