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

Method checkMatrix

core/src/processing/opengl/PShapeOpenGL.java:1478–1492  ·  view source on GitHub ↗
(int dimensions)

Source from the content-addressed store, hash-verified

1476
1477
1478 @Override
1479 protected void checkMatrix(int dimensions) {
1480 if (matrix == null) {
1481 if (dimensions == 2) {
1482 matrix = new PMatrix2D();
1483 matrixInv = new PMatrix2D();
1484 } else {
1485 matrix = new PMatrix3D();
1486 matrixInv = new PMatrix3D();
1487 }
1488 } else if (dimensions == 3 && (matrix instanceof PMatrix2D)) {
1489 matrix = new PMatrix3D(matrix);
1490 matrixInv = new PMatrix3D(matrixInv);
1491 }
1492 }
1493
1494
1495 ///////////////////////////////////////////////////////////

Callers 1

transformMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected