mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-12-27 15:36:24 +01:00
Restore single paramater scale function
- Now has default impl in TransformStack - MatrixTransformStack now only overrides xyz scale
This commit is contained in:
parent
0b2e8834d8
commit
ae6d953c6b
2 changed files with 4 additions and 5 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue