Mercurial > dive4elements > river
changeset 4742:ce6b9945bf8e
Doc.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 28 Dec 2012 15:03:55 +0100 |
parents | f6d0ad25f1ee |
children | 3b76fda4dbb1 |
files | flys-backend/src/main/java/de/intevation/flys/importer/parsers/tim/Coordinate.java flys-backend/src/main/java/de/intevation/flys/importer/parsers/tim/Line.java flys-backend/src/main/java/de/intevation/flys/utils/EpsilonComparator.java |
diffstat | 3 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/importer/parsers/tim/Coordinate.java Wed Jan 02 15:42:22 2013 +0100 +++ b/flys-backend/src/main/java/de/intevation/flys/importer/parsers/tim/Coordinate.java Fri Dec 28 15:03:55 2012 +0100 @@ -1,5 +1,6 @@ package de.intevation.flys.importer.parsers.tim; +/** X,Y,Z- triple. */ public class Coordinate { public double x;
--- a/flys-backend/src/main/java/de/intevation/flys/importer/parsers/tim/Line.java Wed Jan 02 15:42:22 2013 +0100 +++ b/flys-backend/src/main/java/de/intevation/flys/importer/parsers/tim/Line.java Fri Dec 28 15:03:55 2012 +0100 @@ -1,5 +1,6 @@ package de.intevation.flys.importer.parsers.tim; +/** Two coordinates and a helper. */ public class Line { public Coordinate a;
--- a/flys-backend/src/main/java/de/intevation/flys/utils/EpsilonComparator.java Wed Jan 02 15:42:22 2013 +0100 +++ b/flys-backend/src/main/java/de/intevation/flys/utils/EpsilonComparator.java Fri Dec 28 15:03:55 2012 +0100 @@ -2,10 +2,12 @@ import java.util.Comparator; +/** Comparator with some tolerance (epsilon). */ public class EpsilonComparator implements Comparator<Double> { public static final double EPSILON = 1e-4; + /** Ready-made comparator with 1e-4 tolerance. */ public static final EpsilonComparator CMP = new EpsilonComparator(EPSILON); private double epsilon;