moagg.types.math
Class Point

java.lang.Object
  extended by moagg.types.math.Point

public class Point
extends java.lang.Object


Constructor Summary
Point()
           
Point(int x, int y)
           
Point(Point p)
           
 
Method Summary
 void add(int x, int y)
           
 void add(Point p)
           
static Point add(Point p1, Point p2)
           
 void addX(int x)
           
 void addY(int y)
           
 boolean equals(java.lang.Object obj)
           
 int getX()
           
 int getY()
           
 int hashCode()
           
 void setX(int x)
           
 void setY(int y)
           
 void sub(int x, int y)
           
 void sub(Point p)
           
static Point sub(Point p1, Point p2)
           
 void subX(int x)
           
 void subY(int y)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Point

public Point()

Point

public Point(int x,
             int y)

Point

public Point(Point p)
Method Detail

setX

public void setX(int x)

getX

public int getX()

setY

public void setY(int y)

getY

public int getY()

addX

public void addX(int x)

addY

public void addY(int y)

add

public void add(int x,
                int y)

add

public void add(Point p)

add

public static Point add(Point p1,
                        Point p2)

subX

public void subX(int x)

subY

public void subY(int y)

sub

public void sub(int x,
                int y)

sub

public void sub(Point p)

sub

public static Point sub(Point p1,
                        Point p2)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2008. All Rights Reserved.