Name: skT45625 Date: 05/12/2000
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)
In the documentation for the Point class, the following appears:
translate
public void translate(int x,
int y)
Translates this point, at location (x, y), by dx along the x axis and dy along
the y axis so that it now represents the point (x + dx, y + dy).
Parameters:
x - the distance to move this point along the x axis.
y - the distance to move this point along the y axis.
since x & y are the distance to move the point (which is at x,y) perhaps these
parameters should be labeled dx and dy. This would make the description much
more understandable.
Thanks in advance
(Review ID: 104819)
======================================================================
- duplicates
-
JDK-4232321 java.awt.Point.translate(int dx, int dy) instead of (int x, int y) ?
-
- Closed
-