ctf.evaluation
Class Point
java.lang.Object
ctf.evaluation.Point
public class Point
- extends java.lang.Object
Represents a point on the field
Field Summary |
float |
x
|
float |
y
|
Constructor Summary |
Point(double x,
double y)
|
Point(float x,
float y)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
x
public float x
y
public float y
Point
public Point(double x,
double y)
Point
public Point(float x,
float y)
toSTEAL
public java.lang.String toSTEAL()
parseFromString
public static Point parseFromString(java.lang.String s)
throws ProtocolError
- Throws:
ProtocolError
distance
public float distance(Point other)
- Find the distance to an arbitrary point
toString
public java.lang.String toString()
- Object overload
- Overrides:
toString
in class java.lang.Object