Merge branch 'dev' into next

This commit is contained in:
Jozufozu 2021-08-25 13:21:42 -07:00
commit cb10e4e7d1
2 changed files with 7 additions and 3 deletions

View file

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

View file

@ -13,12 +13,16 @@ public interface TransformStack {
TransformStack multiply(Quaternion quaternion);
TransformStack scale(float factor);
TransformStack scale(float factorX, float factorY, float factorZ);
TransformStack push();
TransformStack pop();
default TransformStack scale(float factor) {
return scale(factor, factor, factor);
}
default TransformStack rotate(Direction axis, float radians) {
if (radians == 0)
return this;