Restore single paramater scale function

- Now has default impl in TransformStack
 - MatrixTransformStack now only overrides xyz scale
This commit is contained in:
Jozufozu 2021-08-25 13:15:29 -07:00
parent 0b2e8834d8
commit ae6d953c6b
2 changed files with 4 additions and 5 deletions

View file

@ -36,11 +36,6 @@ public class MatrixTransformStack implements TransformStack {
return this;
}
@Override
public TransformStack scale(float factor) {
return this.scale(factor, factor, factor);
}
@Override
public TransformStack scale(float factorX, float factorY, float factorZ) {
internal.scale(factorX, factorY, factorZ);

View file

@ -19,6 +19,10 @@ public interface TransformStack {
TransformStack pop();
default TransformStack scale(float factor) {
return scale(factor, factor, factor);
}
default TransformStack rotate(Direction axis, float radians) {
if (radians == 0)
return this;