Reference+
Name
resetMatrix()
Description
Replaces the current matrix with the identity matrix. The equivalent function in OpenGL is glLoadIdentity().
Examples
size(400, 400, P3D); noFill(); box(320); printMatrix(); // Prints: // 001.0000 000.0000 000.0000 -200.0000 // 000.0000 001.0000 000.0000 -200.0000 // 000.0000 000.0000 001.0000 -346.4102 // 000.0000 000.0000 000.0000 001.0000 resetMatrix(); box(320); printMatrix(); // Prints: // 1.0000 0.0000 0.0000 0.0000 // 0.0000 1.0000 0.0000 0.0000 // 0.0000 0.0000 1.0000 0.0000 // 0.0000 0.0000 0.0000 1.0000
Syntax
resetMatrix()
Return
void

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.