-// Point.java\r
-// Java Spatial Index Library\r
-// Copyright (C) 2002-2005 Infomatiq Limited.\r
-// \r
-// This library is free software; you can redistribute it and/or\r
-// modify it under the terms of the GNU Lesser General Public\r
-// License as published by the Free Software Foundation; either\r
-// version 2.1 of the License, or (at your option) any later version.\r
-// \r
-// This library is distributed in the hope that it will be useful,\r
-// but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\r
-// Lesser General Public License for more details.\r
-// \r
-// You should have received a copy of the GNU Lesser General Public\r
-// License along with this library; if not, write to the Free Software\r
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-\r
-package com.infomatiq.jsi;\r
-\r
-/**\r
- * Currently hardcoded to 2 dimensions, but could be extended.\r
- * \r
- * @author aled@sourceforge.net\r
- * @version 1.0b8\r
- */\r
-public class Point {\r
- /**\r
- * The (x, y) coordinates of the point.\r
- */\r
- public float x, y;\r
- \r
- /**\r
- * Constructor.\r
- * \r
- * @param x The x coordinate of the point\r
- * @param y The y coordinate of the point\r
- */\r
- public Point(float x, float y) {\r
- this.x = x; \r
- this.y = y;\r
- }\r
- \r
- /**\r
- * Copy from another point into this one\r
- */\r
- public void set(Point other) {\r
- x = other.x;\r
- y = other.y;\r
- }\r
- \r
- /**\r
- * Print as a string in format "(x, y)"\r
- */\r
- public String toString() {\r
- return "(" + x + ", " + y + ")";\r
- }\r
- \r
- /**\r
- * @return X coordinate rounded to an int\r
- */\r
- public int xInt() {\r
- return (int) Math.round(x);\r
- }\r
- \r
- /**\r
- * @return Y coordinate rounded to an int\r
- */\r
- public int yInt() {\r
- return (int) Math.round(y);\r
- }\r
-}\r
+// Point.java
+// Java Spatial Index Library
+// Copyright (C) 2002-2005 Infomatiq Limited.
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+package com.infomatiq.jsi;
+
+/**
+ * Currently hardcoded to 2 dimensions, but could be extended.
+ *
+ * @author aled@sourceforge.net
+ * @version 1.0b8
+ */
+public class Point {
+ /**
+ * The (x, y) coordinates of the point.
+ */
+ public float x, y;
+
+ /**
+ * Constructor.
+ *
+ * @param x The x coordinate of the point
+ * @param y The y coordinate of the point
+ */
+ public Point(float x, float y) {
+ this.x = x;
+ this.y = y;
+ }
+
+ /**
+ * Copy from another point into this one
+ */
+ public void set(Point other) {
+ x = other.x;
+ y = other.y;
+ }
+
+ /**
+ * Print as a string in format "(x, y)"
+ */
+ public String toString() {
+ return "(" + x + ", " + y + ")";
+ }
+
+ /**
+ * @return X coordinate rounded to an int
+ */
+ public int xInt() {
+ return (int) Math.round(x);
+ }
+
+ /**
+ * @return Y coordinate rounded to an int
+ */
+ public int yInt() {
+ return (int) Math.round(y);
+ }
+}