Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/model/CrossSectionLine.java @ 6281:ad57b1938d8a
Cosemetics, doc.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 12 Jun 2013 09:43:02 +0200 |
parents | 939fea2b24a2 |
children | 9d2e69f971f5 |
comparison
equal
deleted
inserted
replaced
6280:36455dfcb788 | 6281:ad57b1938d8a |
---|---|
41 | 41 |
42 public static final double TOO_SMALL = 0.2; | 42 public static final double TOO_SMALL = 0.2; |
43 public static final double TOO_BIG = 2500; | 43 public static final double TOO_BIG = 2500; |
44 | 44 |
45 private Integer id; | 45 private Integer id; |
46 private Double km; | 46 private Double km; |
47 private CrossSection crossSection; | 47 private CrossSection crossSection; |
48 | 48 |
49 private List<CrossSectionPoint> points; | 49 private List<CrossSectionPoint> points; |
50 | 50 |
51 public static final Comparator<CrossSectionPoint> COL_POS_CMP = | 51 public static final Comparator<CrossSectionPoint> COL_POS_CMP = |
149 | 149 |
150 public double [][] fetchCrossSectionProfile() { | 150 public double [][] fetchCrossSectionProfile() { |
151 return fetchCrossSectionProfile(fetchCrossSectionLinesPoints()); | 151 return fetchCrossSectionProfile(fetchCrossSectionLinesPoints()); |
152 } | 152 } |
153 | 153 |
154 /** double[][] from List<Point2D> */ | |
154 public static double [][] fetchCrossSectionProfile(List<Point2D> points) { | 155 public static double [][] fetchCrossSectionProfile(List<Point2D> points) { |
155 | 156 |
156 int P = points.size(); | 157 int P = points.size(); |
157 | 158 |
158 double [] xs = new double[P]; | 159 double [] xs = new double[P]; |