Revision 14849

View differences:

trunk/extensions/extCAD/src/com/iver/cit/gvsig/gui/cad/CADToolAdapter.java
621 621
				ct.transition(values[0], values[1], event);
622 622
				previousPoint = values;
623 623
				break;
624
			case POLAR_SCU:
624
			case POLAR_SCU://Relativo
625 625
				// Comprobar que tenemos almacenado el punto anterior
626 626
				// y crear nuevo con coordenadas relativas a ?l.
627 627
				double[] auxPolarSCU = values;
......
641 641
				}
642 642
				previousPoint = auxPolarSCU;
643 643
				break;
644
			case POLAR_SCP:
644
			case POLAR_SCP://Absoluto
645 645
				double[] auxPolarSCP = values;
646 646
				if (previousPoint != null) {
647 647
					Point2D point = UtilFunctions.getPoint(new Point2D.Double(
648
							previousPoint[0], previousPoint[1]), values[1],
649
							values[0]);
648
							0, 0),  Math
649
							.toRadians(values[1]), values[0]);
650 650
					auxPolarSCP[0] = point.getX();
651 651
					auxPolarSCP[1] = point.getY();
652 652
					ct.transition(auxPolarSCP[0], auxPolarSCP[1], event);

Also available in: Unified diff