1

I am reading a java doc for GObject /acm.graphics.

I am looking at this method:

move(double dx, double dy) 

Moves the object on the screen using the displacements dx and dy.

I am trying to understand what does the 'd' stands for and what is the difference between (dx,dy) Vs (x,y)? Is there any difference or there is none and it is only a different name for the same coordinates?

Marcin Kulik
  • 845
  • 1
  • 12
  • 28

1 Answers1

5

move(double dx, double dy) Moves the object on the screen using the displacements dx and dy.

In this context dx would be "displacement on the x-axis" and dy would be "displacement on the y-axis". The method would move the object dx units along the x-axis, and dy units along the y-axis, where the units are presumably pixels.

Andrew Tobilko
  • 48,120
  • 14
  • 91
  • 142
jwaddell
  • 1,892
  • 1
  • 23
  • 32