Class org.aswing.geom.Point

Description

A point with x and y coordinates.

Field Index

x, y

Method Index

new Point()
distance(), distanceSq(), equals(), move(), moveRadians(), nextPoint(), setLocation(), toString()

Constructor Detail

Point

public function Point(x, y:Number)

Constructor
Point(x:Number, y:Number)
Point(p:Point)
Point()

Field Detail

x

public x:Number

y

public y:Number

Method Detail

setLocation

public function setLocation(x, y:Number):Void


setLocation(x:Number, y:Number)
setLocation(p:Point)

move

public function move(dx:Number, dy:Number):Point

moveRadians

public function moveRadians(angle:Number, distance:Number):Point

nextPoint

public function nextPoint(angle:Number, distance:Number):Point

distanceSq

public function distanceSq(tx, ty:Number):Number


distanceSq(x:Number, y:Number)
distanceSq(p:Point)

Return

the distance square from this to p

distance

public function distance(tx, ty:Number):Number


distance(x:Number, y:Number)
distance(p:Point)

Return

the distance from this to p

equals

public function equals(o:Object):Boolean

toString

public function toString():String