com.fasteasytrade.jrandtest.tests.Point Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ports-jrandtest Show documentation
Show all versions of ports-jrandtest Show documentation
Fork from https://github.com/cryptopony/jrandtest
The newest version!
package com.fasteasytrade.jrandtest.tests;
/**
* @author Zur Aougav point class is used by MinimumDistance
*
*/
public class Point implements Comparable {
public double x;
public double y;
public Point() {
super();
}
public Point(double x, double y) {
this.x = x;
this.y = y;
}
@Override
public int compareTo(Point p) {
return new Double(y).compareTo(p.y);
}
@Override
public String toString() {
return x + "," + y;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy