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

Method translate

core/src/processing/core/PShape.java:3041–3044  ·  view source on GitHub ↗

( begin auto-generated from PShape_translate.xml ) Specifies an amount to displace the shape. The x parameter specifies left/right translation, the y parameter specifies up/down translation, and the z parameter specifies translations toward/away from the screen. Subsequent call

(float x, float y)

Source from the content-addressed store, hash-verified

3039 * @see PShape#resetMatrix()
3040 */
3041 public void translate(float x, float y) {
3042 checkMatrix(2);
3043 matrix.translate(x, y);
3044 }
3045
3046 /**
3047 * @param z forward/back translation

Callers

nothing calls this directly

Calls 2

checkMatrixMethod · 0.95
translateMethod · 0.65

Tested by

no test coverage detected