MCPcopy Index your code
hub / github.com/processing/processing / translate

Method translate

core/src/processing/opengl/PShapeOpenGL.java:1236–1243  ·  view source on GitHub ↗
(float tx, float ty)

Source from the content-addressed store, hash-verified

1234
1235
1236 @Override
1237 public void translate(float tx, float ty) {
1238 if (is3D) {
1239 transform(TRANSLATE, tx, ty, 0);
1240 } else {
1241 transform(TRANSLATE, tx, ty);
1242 }
1243 }
1244
1245
1246 @Override

Callers

nothing calls this directly

Calls 1

transformMethod · 0.95

Tested by

no test coverage detected