Class Point

Object
   |
   +--Point

class Point


A class representing a two-dimensional point.
Defined in point.js


Field Summary
 Float x
          x value of the Point
 Float y
          y value of the Point
 
Constructor Summary
Point(<Float> x, <Float> y)
           
 
Method Summary
 Float dist(<Point> p)
           computes the distance between a Point p and this Point
 Object dividedBy(<Float> c)
           divides this Point by a scalar c
 Boolean equals(<Point> p)
           checks if the coordinates of this Point match the coordinates of a Point p
 Object minus(<Point> p)
           subtracts a Point p from this Point
 Object plus(<Point> p)
           adds this Point to a Point p
 Point round(numOfDigits)
           rounds the coordinates to numOfDigits digits
 Object times(<Float> c)
           multiplies this Point by a scalar c
 String toString()
          

Field Detail

x

Float x

y

Float y

Constructor Detail

Point

Point(<Float> x, <Float> y)

Method Detail

dist

Float dist(<Point> p)

dividedBy

Object dividedBy(<Float> c)

equals

Boolean equals(<Point> p)

minus

Object minus(<Point> p)

plus

Object plus(<Point> p)

round

Point round(numOfDigits)

times

Object times(<Float> c)

toString

String toString()


Documentation generated by JSDoc on Wed Aug 8 10:35:22 2007