Revision 35475 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/impl/Circle2D.java
Circle2D.java | ||
---|---|---|
201 | 201 |
*/ |
202 | 202 |
public void move(double x, double y) { |
203 | 203 |
center = new Point2D.Double(center.getX() + x, center.getY() + y); |
204 |
for (int i = 0; i < gp.getNumCoords() / 2; i++) { |
|
205 |
gp.getPointCoords()[i * 2] += x; |
|
206 |
gp.getPointCoords()[i * 2 + 1] += y; |
|
204 |
Point point; |
|
205 |
for (int i = 0; i < gp.getNumCoords(); i++) { |
|
206 |
point = gp.getPointAt(i); |
|
207 |
point.setX(point.getX() + x); |
|
208 |
point.setY(point.getY() + y); |
|
207 | 209 |
} |
208 | 210 |
} |
209 | 211 |
|
... | ... | |
247 | 249 |
* @return DOCUMENT ME! |
248 | 250 |
*/ |
249 | 251 |
public void move(double x, double y) { |
250 |
for (int i = 0; i < gp.getNumCoords() / 2; i++) { |
|
251 |
gp.getPointCoords()[i * 2] += x; |
|
252 |
gp.getPointCoords()[i * 2 + 1] += y; |
|
252 |
Point point; |
|
253 |
for (int i = 0; i < gp.getNumCoords() ; i++) { |
|
254 |
point = gp.getPointAt(i); |
|
255 |
point.setX(point.getX() + x); |
|
256 |
point.setY(point.getY() + y); |
|
253 | 257 |
} |
254 | 258 |
} |
255 | 259 |
|
Also available in: Unified diff