MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / clear

Method clear

src/main/java/field/linalg/MatrixStack.java:77–81  ·  view source on GitHub ↗

Dispose of all but the first matrix in this stack and set the stack counter to zero. The first matrix will also be set to identity. @return this

()

Source from the content-addressed store, hash-verified

75 * @return this
76 */
77 public MatrixStack clear() {
78 curr = 0;
79 mats[0].identity();
80 return this;
81 }
82
83 /**
84 * Load the given {@link Mat4} into the current matrix of the stack.

Callers

nothing calls this directly

Calls 1

identityMethod · 0.45

Tested by

no test coverage detected