Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libTopology / src / org / gvsig / jts / voronoi / chen / Coord.java @ 21245

History | View | Annotate | Download (460 Bytes)

1
package org.gvsig.jts.voronoi.chen;
2

    
3
/**
4
 * Voronoi Diagram
5
 *
6
 * Copyright(c) 1998 Ping-Che Chen
7
 *
8
 * This is the definition of the coordinate system.
9
 *
10
 */
11

    
12

    
13
public class Coord {
14

    
15
  public double x, y;
16

    
17
  public String toString() {
18
    return "(" + x + "," + y + ")";
19
  }
20

    
21
  public boolean equals(final Coord p) {
22
    if(Math.abs(p.x - x) < 1E-5 && Math.abs(p.y - y) < 1E-5)
23
      return true;
24
    else
25
      return false;
26
  }
27
}