MCPcopy Index your code
hub / github.com/benfry/processing4 / translate

Method translate

core/src/processing/core/PShape.java:3143–3146  ·  view source on GitHub ↗

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 calls to the method accumulates the effect. For example,

(float x, float y)

Source from the content-addressed store, hash-verified

3141 * @see PShape#resetMatrix()
3142 */
3143 public void translate(float x, float y) {
3144 checkMatrix(2);
3145 matrix.translate(x, y);
3146 }
3147
3148 /**
3149 * @param z forward/back translation

Callers

nothing calls this directly

Calls 2

checkMatrixMethod · 0.95
translateMethod · 0.65

Tested by

no test coverage detected