Revision 23274 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/GeometryFactory.java
GeometryFactory.java | ||
---|---|---|
373 | 373 |
public Geometry createEllipticArc2D(Point2D axis1Start, Point2D axis1End, |
374 | 374 |
double semiAxis2Length, double angSt, double angExt) { |
375 | 375 |
double xAxis = axis1Start.distance(axis1End); |
376 |
Arc2D.Double arc = new Arc2D.Double(axis1Start.getX(), axis1Start.getY() |
|
377 |
- semiAxis2Length, xAxis, 2 * semiAxis2Length, 0, 360, Arc2D.OPEN); |
|
376 |
|
|
377 |
Arc2D.Double arc = new Arc2D.Double( |
|
378 |
axis1Start.getX(), |
|
379 |
axis1Start.getY() - semiAxis2Length, |
|
380 |
xAxis, |
|
381 |
2 * semiAxis2Length, |
|
382 |
Math.toDegrees(angSt), |
|
383 |
-Math.toDegrees(angExt), |
|
384 |
Arc2D.OPEN); |
|
378 | 385 |
// TODO Línea comentada para quitar warning: Point2D rotationPoint = new |
379 | 386 |
// Point2D.Double(axis1Start.getX() + xAxis /2, axis1Start.getY()); |
380 | 387 |
double angle = UtilFunctions.getAngle(axis1Start, axis1End); |
... | ... | |
390 | 397 |
double semiAxis2Length, double angSt, double angExt, double z) { |
391 | 398 |
double xAxis = axis1Start.distance(axis1End); |
392 | 399 |
Arc2D.Double arc = new Arc2D.Double(axis1Start.getX(), axis1Start.getY() |
393 |
- semiAxis2Length, xAxis, 2 * semiAxis2Length, 0, 360, Arc2D.OPEN);
|
|
400 |
- semiAxis2Length, xAxis, 2 * semiAxis2Length, Math.toDegrees(angSt), -Math.toDegrees(angExt), Arc2D.OPEN);
|
|
394 | 401 |
// TODO Línea comentada para quitar warning: Point2D rotationPoint = new |
395 | 402 |
// Point2D.Double(axis1Start.getX() + xAxis /2, axis1Start.getY()); |
396 | 403 |
double angle = UtilFunctions.getAngle(axis1Start, axis1End); |
Also available in: Unified diff