Stinker
Class MyPoint

java.lang.Object
  extended by Stinker.MyPoint

public class MyPoint
extends java.lang.Object


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

Field Detail

y

public int y

x

public int x
Constructor Detail

MyPoint

public MyPoint(int y,
               int x)

MyPoint

public MyPoint(java.awt.Point p)

MyPoint

public MyPoint(MyPoint mp)
Method Detail

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)