From 4fbb8088322842e8398d5bdf1236fe00f6eb7656 Mon Sep 17 00:00:00 2001 From: MehVahdJukaar Date: Wed, 25 Aug 2021 20:21:33 +0200 Subject: [PATCH] Added 3 parameter scaling function Simply adds a 3 parameter function to to MatrixTransformStack so a matrix can be scaled on different axis --- .../flywheel/util/transform/MatrixTransformStack.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/jozufozu/flywheel/util/transform/MatrixTransformStack.java b/src/main/java/com/jozufozu/flywheel/util/transform/MatrixTransformStack.java index ed08b5dc7..5b61913c5 100644 --- a/src/main/java/com/jozufozu/flywheel/util/transform/MatrixTransformStack.java +++ b/src/main/java/com/jozufozu/flywheel/util/transform/MatrixTransformStack.java @@ -41,6 +41,12 @@ public class MatrixTransformStack implements TransformStack { internal.scale(factor, factor, factor); return this; } + + @Override + public TransformStack scale(float factorX, float factorY, float factorZ) { + internal.scale(factorX, factorY, factorZ); + return this; + } @Override public TransformStack push() {