Webnote

Class Point

Object
   |
   +--Point

class Point


A class representing two numbers, x and y.
Defined in objects.js


Field Summary
 int x
          
 int y
          
 
Constructor Summary
Point (<int> x, <int> y)
            Create a new Point object
 
Method Summary
 Point add(<Point> rhs)
           Add two points together and return a new Point object.
 Point copy()
           Make a copy of the Point object.
 Point div(<int> n)
           Divide x and y by the input value.
 boolean equals(<Point> rhs)
           Determines if two points have the samve x and y values, respectively.
 Point sub(<Point> rhs)
           Subtract the input point from the object and return a new Point object.
 String toString()
           A string representation of a point.

Field Detail

x

int x

y

int y

Constructor Detail

Point

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

Method Detail

add

Point add(<Point> rhs)

copy

Point copy()

div

Point div(<int> n)

equals

boolean equals(<Point> rhs)

sub

Point sub(<Point> rhs)

toString

String toString()

Webnote

Documentation generated by JSDoc on Tue May 24 23:13:22 2005