atavism.server.objects
Class Vector2
java.lang.Object
atavism.server.objects.Vector2
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class Vector2
- extends java.lang.Object
- implements java.lang.Cloneable, java.io.Serializable
represents a 2d point, useful in 2D boundary calculations
- See Also:
- Serialized Form
Field Summary |
double |
x
|
double |
y
|
Method Summary |
java.lang.Object |
clone()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
x
public double x
y
public double y
Vector2
public Vector2()
Vector2
public Vector2(int x,
int y)
Vector2
public Vector2(double x,
double y)
Vector2
public Vector2(Point p)
clone
public java.lang.Object clone()
- Overrides:
clone
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object