ctf.evaluation
Class Point

java.lang.Object
  extended by 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)
           
 
Method Summary
 float distance(Point other)
          Find the distance to an arbitrary point
static Point parseFromString(java.lang.String s)
           
 java.lang.String toSTEAL()
           
 java.lang.String toString()
          Object overload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public float x

y

public float y
Constructor Detail

Point

public Point(double x,
             double y)

Point

public Point(float x,
             float y)
Method Detail

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