MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / translate

Method translate

src/org/opensourcephysics/media/core/TPoint.java:594–596  ·  view source on GitHub ↗

Translates this TPoint by the specified displacement. @param dx the x displacement in imagespace @param dy the y displacement in imagespace

(double dx, double dy)

Source from the content-addressed store, hash-verified

592 * @param dy the y displacement in imagespace
593 */
594 public void translate(double dx, double dy) {
595 setXY(x + dx, y + dy);
596 }
597
598 /**
599 * Sets the adjusting flag. This is normally set by the mouse handler when this

Callers 15

printMethod · 0.45
setXYMethod · 0.45
getShapeMethod · 0.45
setXYMethod · 0.45
printToGraphicsMethod · 0.45
printMethod · 0.45
drawMethod · 0.45
setWidthMethod · 0.45
setHeightMethod · 0.45
drawMethod · 0.45
drawMethod · 0.45
drawTextImageRotatedMethod · 0.45

Calls 1

setXYMethod · 0.95

Tested by

no test coverage detected