Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/model/CrossSectionLine.java @ 2380:e237a08acf6e
Create fast cross section lines in the backend now.
flys-backend/trunk@3696 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 17 Jan 2012 16:56:38 +0000 |
parents | c5d83366d0b1 |
children | 2f874d14ac68 |
comparison
equal
deleted
inserted
replaced
2379:8be27b950dbe | 2380:e237a08acf6e |
---|---|
58 | 58 |
59 | 59 |
60 public static final boolean isValid(double x) { | 60 public static final boolean isValid(double x) { |
61 x = Math.abs(x); | 61 x = Math.abs(x); |
62 return x > TOO_SMALL && x < TOO_BIG; | 62 return x > TOO_SMALL && x < TOO_BIG; |
63 } | 63 } |
64 | |
65 public static final boolean isValid(Point2D p) { | |
66 return isValid(p.getX()) && isValid(p.getY()); | |
67 } | |
64 | 68 |
65 | 69 |
66 public CrossSectionLine() { | 70 public CrossSectionLine() { |
67 } | 71 } |
68 | 72 |