From 140e8fcd4f65a1158ca1f0d796963aa1f84a79ee Mon Sep 17 00:00:00 2001 From: Sumama Sonia Date: Sun, 7 Dec 2025 07:09:10 +0500 Subject: [PATCH] Add print method to PMatrix interface Added a default method to print matrix data. --- core/src/processing/core/PMatrix.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/src/processing/core/PMatrix.java b/core/src/processing/core/PMatrix.java index edb1d260eb..48809e1f33 100644 --- a/core/src/processing/core/PMatrix.java +++ b/core/src/processing/core/PMatrix.java @@ -205,4 +205,10 @@ public void preApply(float n00, float n01, float n02, float n03, * @return the determinant of the matrix */ public float determinant(); + /** + * Print the matrix data to the console. + */ + default void print() { + System.out.println(this); + } }