| Method | Defined by | ||
|---|---|---|---|
|
IntPoint(x:int = 0, y:int = 0)
Constructor
| IntPoint | ||
|
Duplicates current instance.
| IntPoint | ||
|
creatWithPoint(p:Point):IntPoint
[static]
Create a int point with point.
| IntPoint | ||
|
Returns the distance between this point and passing point.
| IntPoint | ||
|
distanceSq(p:IntPoint):int
Returns the distance square between this point and passing point.
| IntPoint | ||
|
equals(o:Object):Boolean
Returns whether or not this passing object is a same value point.
| IntPoint | ||
|
Moves this point and return itself.
| IntPoint | ||
|
moveRadians(direction:int, distance:int):IntPoint
Moves this point with an direction in radians and distance, then return itself.
| IntPoint | ||
|
Returns the point beside this point with direction and distance.
| IntPoint | ||
|
setLocation(p:IntPoint):void
Sets the location of this point as same as point p.
| IntPoint | ||
|
setLocationXY(x:int = 0, y:int = 0):void
Sets the location of this point with x and y.
| IntPoint | ||
|
setWithPoint(p:Point):void
Sets the location with a
Point, the value will be transfer to int. | IntPoint | ||
|
toPoint():Point
Return a Point instance with same value.
| IntPoint | ||
|
toString():String
| IntPoint | ||
| x | property |
public var x:int = 0
| y | property |
public var y:int = 0
| IntPoint | () | constructor |
public function IntPoint(x:int = 0, y:int = 0)Constructor
Parametersx:int (default = 0) |
|
y:int (default = 0) |
| clone | () | method |
public function clone():IntPointDuplicates current instance.
ReturnsIntPoint —
copy of the current instance.
|
| creatWithPoint | () | method |
public static function creatWithPoint(p:Point):IntPointCreate a int point with point.
Parametersp:Point |
IntPoint |
| distance | () | method |
public function distance(p:IntPoint):intReturns the distance between this point and passing point.
Parametersp:IntPoint — the another point.
|
int — the distance from this to p.
|
| distanceSq | () | method |
public function distanceSq(p:IntPoint):intReturns the distance square between this point and passing point.
Parametersp:IntPoint — the another point.
|
int — the distance square from this to p.
|
| equals | () | method |
public function equals(o:Object):BooleanReturns whether or not this passing object is a same value point.
Parameterso:Object — the object to be compared.
|
Boolean — equals or not.
|
| move | () | method |
public function move(dx:int, dy:int):IntPointMoves this point and return itself.
Parametersdx:int — delta of x.
|
|
dy:int — delta of y.
|
IntPoint —
the point itself.
|
| moveRadians | () | method |
public function moveRadians(direction:int, distance:int):IntPointMoves this point with an direction in radians and distance, then return itself.
Parametersdirection:int — the angle in radians.
|
|
distance:int — the distance in pixels.
|
IntPoint —
the point itself.
|
| nextPoint | () | method |
public function nextPoint(direction:Number, distance:Number):IntPointReturns the point beside this point with direction and distance.
Parametersdirection:Number |
|
distance:Number |
IntPoint —
the point beside.
|
| setLocation | () | method |
public function setLocation(p:IntPoint):voidSets the location of this point as same as point p.
Parametersp:IntPoint — the location to be set.
|
| setLocationXY | () | method |
public function setLocationXY(x:int = 0, y:int = 0):voidSets the location of this point with x and y.
Parametersx:int (default = 0) — the x coordinates.
|
|
y:int (default = 0) — the y coordinates.
|
| setWithPoint | () | method |
public function setWithPoint(p:Point):void
Sets the location with a Point, the value will be transfer to int.
p:Point — the location to be set.
|
| toPoint | () | method |
public function toPoint():PointReturn a Point instance with same value.
ReturnsPoint |
| toString | () | method |
public function toString():StringReturns
String |