moagg.types.math
Class Point
java.lang.Object
moagg.types.math.Point
public class Point
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Point
public Point()
Point
public Point(int x,
int y)
Point
public Point(Point p)
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.