Revision 45673 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/point/Point3D.java
Point3D.java | ||
---|---|---|
78 | 78 |
this(null, new Coordinate(x, y, z)); |
79 | 79 |
} |
80 | 80 |
|
81 |
public Point3D(IProjection proj, double x, double y, double z) { |
|
82 |
this(proj, new Coordinate(x, y, z)); |
|
83 |
} |
|
81 | 84 |
|
85 |
|
|
82 | 86 |
public double getZ() { |
83 | 87 |
return this.coordinate.z; |
84 | 88 |
} |
... | ... | |
276 | 280 |
return true; |
277 | 281 |
} |
278 | 282 |
|
283 |
@Override |
|
284 |
public Point force3D() { |
|
285 |
Point3D p = new Point3D(this.getProjection(), this.coordinate.x, this.coordinate.y, this.coordinate.z); |
|
286 |
return p; |
|
287 |
} |
|
279 | 288 |
|
289 |
@Override |
|
290 |
public Point force2DM() { |
|
291 |
Point2DM p = new Point2DM(this.getProjection(), this.coordinate.x, this.coordinate.y, 0); |
|
292 |
return p; |
|
293 |
} |
|
280 | 294 |
|
295 |
@Override |
|
296 |
public Point force3DM() { |
|
297 |
Point3DM p = new Point3DM(this.getProjection(), this.coordinate.x, this.coordinate.y, this.coordinate.z, 0); |
|
298 |
return p; |
|
299 |
} |
|
300 |
|
|
301 |
|
|
281 | 302 |
} |
Also available in: Unified diff