Skip to content

Commit 140e8fc

Browse files
authored
Add print method to PMatrix interface
Added a default method to print matrix data.
1 parent 467cee7 commit 140e8fc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/src/processing/core/PMatrix.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,4 +205,10 @@ public void preApply(float n00, float n01, float n02, float n03,
205205
* @return the determinant of the matrix
206206
*/
207207
public float determinant();
208+
/**
209+
* Print the matrix data to the console.
210+
*/
211+
default void print() {
212+
System.out.println(this);
213+
}
208214
}

0 commit comments

Comments
 (0)