From 38349e246be2bc2bd76b3ec1a08903f6bea3693e Mon Sep 17 00:00:00 2001 From: micycle1 Date: Tue, 15 Feb 2022 14:40:25 +0000 Subject: [PATCH] add getMatrix() to PShape --- core/src/processing/core/PShape.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/processing/core/PShape.java b/core/src/processing/core/PShape.java index 16eaf6f1dd..8c601f198d 100644 --- a/core/src/processing/core/PShape.java +++ b/core/src/processing/core/PShape.java @@ -3046,7 +3046,7 @@ public boolean isClosed() { /** * Return true if this x, y coordinate is part of this shape. Only works * with PATH shapes or GROUP shapes that contain other GROUPs or PATHs. - * This method is not imperfect and doesn't account for all cases + * This method is not perfect and doesn't account for all cases * (not all complex shapes: concave shapes or holes may have issues). */ public boolean contains(float x, float y) { @@ -3326,6 +3326,10 @@ public void scale(float x, float y, float z) { // + + public PMatrix getMatrix() { + return matrix; + } /** *