Class IWPoint

Extends IWCloneable.

A class representing a 2D point in screen coordinates.

Author: BRE, JAN

Constructor Summary
IWPoint(x, y)
            Creates a new point at the specified coordinate. If x and y are not specified (0, 0) is returned.
 
Method Summary
 IWPoint add(other)
           Returns a point whose value is (this + other).
 IWPoint clone()
           Returns a new instance of this object.
 Number distanceFrom(other)
           Returns the distance between this point and another one in pixels.
 boolean equals(other)
           Checks whether this point equals another one.
 Number getX()
           Returns the horizontal position of this point.
 Number getY()
           Returns the vertical position of this point.
 void setX(x)
           Sets the horizontal position of this point.
 void setY(y)
           Sets the vertical position of this point.
 IWPoint substract(other)
           Returns a point whose value is (this - other).
 String toString()
           Returns a string representation of this point.
 
Constructor Detail

IWPoint

IWPoint(x, y)

Method Detail

add

IWPoint add(other)

clone

IWPoint clone()

distanceFrom

Number distanceFrom(other)

equals

boolean equals(other)

getX

Number getX()

getY

Number getY()

setX

void setX(x)

setY

void setY(y)

substract

IWPoint substract(other)

toString

String toString()

Source-Code Copyright 2007-2009 infoware GmbH - Documentation generated by JsDoc Toolkit 1.4.1 on Tue Nov 28 2017 09:51:51 GMT+0100 (MEZ)