Revision 42326 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.geometry/org.gvsig.fmap.geometry.jts/src/main/java/org/gvsig/fmap/geom/jts/primitive/curve/line/BaseLine3DM.java
BaseLine3DM.java | ||
---|---|---|
58 | 58 |
private static final long serialVersionUID = 1765763899814153661L; |
59 | 59 |
|
60 | 60 |
/** |
61 |
* @param subtype |
|
62 |
*/ |
|
63 |
protected BaseLine3DM() { |
|
64 |
super(Geometry.SUBTYPES.GEOM3DM); |
|
65 |
this.coordinates = new ArrayListCoordinateSequence(new ArrayList<Coordinate>()); |
|
66 |
} |
|
67 |
|
|
68 |
/** |
|
69 |
* |
|
70 |
*/ |
|
71 |
public BaseLine3DM(Coordinate[] coordinates) { |
|
72 |
this(); |
|
73 |
this.coordinates = new ArrayListCoordinateSequence(new ReadOnlyCoordinates(coordinates)); |
|
74 |
if(coordinates.length<1){ |
|
75 |
anyVertex = new Point3DM(0,0,0,0); |
|
76 |
} else { |
|
77 |
Coordinate coordinate = coordinates[0]; |
|
78 |
anyVertex = new Point3DM(coordinate.x, coordinate.y, coordinate.z, coordinate.getOrdinate(CoordinateSequence.M)); |
|
79 |
} |
|
80 |
|
|
81 |
} |
|
82 |
|
|
83 |
/** |
|
84 | 61 |
* @param polygon |
85 | 62 |
* @param coordinates |
86 | 63 |
*/ |
Also available in: Unified diff