Revision 47432 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/surface/ellipticarc/AbstractEllipticArc.java
AbstractEllipticArc.java | ||
---|---|---|
348 | 348 |
return other; |
349 | 349 |
} |
350 | 350 |
|
351 |
@Override |
|
352 |
public Geometry force2DM() throws GeometryOperationNotSupportedException, GeometryOperationException { |
|
353 |
EllipticArc2DM other = new EllipticArc2DM(); |
|
354 |
Point theAxis1Start = (Point) this.axis1Start.force2DM(); |
|
355 |
Point theAxis1End = (Point) this.axis1End.force2DM(); |
|
356 |
other.setPoints(theAxis1Start, theAxis1End, semiAxis2Length, angSt, angExt); |
|
357 |
other.setProjection(this.getProjection()); |
|
358 |
return other; |
|
359 |
} |
|
360 |
|
|
361 |
@Override |
|
362 |
public Geometry force3D() throws GeometryOperationNotSupportedException, GeometryOperationException { |
|
363 |
EllipticArc2DZ other = new EllipticArc2DZ(); |
|
364 |
Point theAxis1Start = (Point) this.axis1Start.force3D(); |
|
365 |
Point theAxis1End = (Point) this.axis1End.force3D(); |
|
366 |
other.setPoints(theAxis1Start, theAxis1End, semiAxis2Length, angSt, angExt); |
|
367 |
other.setProjection(this.getProjection()); |
|
368 |
return other; |
|
369 |
} |
|
370 |
|
|
371 |
@Override |
|
372 |
public Geometry force3DM() throws GeometryOperationNotSupportedException, GeometryOperationException { |
|
373 |
EllipticArc2DZM other = new EllipticArc2DZM(); |
|
374 |
Point theAxis1Start = (Point) this.axis1Start.force3DM(); |
|
375 |
Point theAxis1End = (Point) this.axis1End.force3DM(); |
|
376 |
other.setPoints(theAxis1Start, theAxis1End, semiAxis2Length, angSt, angExt); |
|
377 |
other.setProjection(this.getProjection()); |
|
378 |
return other; |
|
379 |
} |
|
380 |
|
|
381 |
|
|
382 |
|
|
351 | 383 |
public Point getAxis1Start() { |
352 | 384 |
return axis1Start; |
353 | 385 |
} |
Also available in: Unified diff