Stinker
Class MyPoint
java.lang.Object
Stinker.MyPoint
public class MyPoint
- extends java.lang.Object
|
Field Summary |
int |
x
|
int |
y
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
y
public int y
x
public int x
MyPoint
public MyPoint(int y,
int x)
MyPoint
public MyPoint(java.awt.Point p)
MyPoint
public MyPoint(MyPoint mp)
set
public MyPoint set(MyPoint other)
set
public MyPoint set(int y,
int x)
add
public MyPoint add(MyPoint other)
add
public MyPoint add(int y,
int x)
mul
public MyPoint mul(int factor)
isInRange
public boolean isInRange(MyPoint min,
MyPoint max)
eq
public boolean eq(MyPoint other)
eq
public boolean eq(int y,
int x)
toInt
public int toInt(MyPoint scale)
dirToMyPoint
public static MyPoint dirToMyPoint(int dir)
myPointToDir
public static byte myPointToDir(MyPoint mp)