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

Method resetMatrix

core/src/processing/core/PShape.java:3358–3361  ·  view source on GitHub ↗

Replaces the current matrix of a shape with the identity matrix. The equivalent function in OpenGL is glLoadIdentity() . @webref pshape:method @webBrief Replaces the current matrix of a shape with the identity matrix @usage web_application @see PShape#rotate(float) @see PShape#scale(float) @s

()

Source from the content-addressed store, hash-verified

3356 * @see PShape#translate(float, float)
3357 */
3358 public void resetMatrix() {
3359 checkMatrix(2);
3360 matrix.reset();
3361 }
3362
3363
3364 public void applyMatrix(PMatrix source) {

Callers 2

beginDrawMethod · 0.45
beginDrawMethod · 0.45

Calls 2

checkMatrixMethod · 0.95
resetMethod · 0.65

Tested by

no test coverage detected