mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-12-28 16:06:28 +01:00
Merge pull request #36 from MehVahdJukaar/dev
Adds 3 parameter scaling function to MatrixTransformStack
This commit is contained in:
commit
0eafe8f453
2 changed files with 7 additions and 3 deletions
|
@ -37,8 +37,8 @@ public class MatrixTransformStack implements TransformStack {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public TransformStack scale(float factor) {
|
public TransformStack scale(float factorX, float factorY, float factorZ) {
|
||||||
internal.scale(factor, factor, factor);
|
internal.scale(factorX, factorY, factorZ);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,12 +13,16 @@ public interface TransformStack {
|
||||||
|
|
||||||
TransformStack multiply(Quaternion quaternion);
|
TransformStack multiply(Quaternion quaternion);
|
||||||
|
|
||||||
TransformStack scale(float factor);
|
TransformStack scale(float factorX, float factorY, float factorZ);
|
||||||
|
|
||||||
TransformStack push();
|
TransformStack push();
|
||||||
|
|
||||||
TransformStack pop();
|
TransformStack pop();
|
||||||
|
|
||||||
|
default TransformStack scale(float factor) {
|
||||||
|
return scale(factor, factor, factor);
|
||||||
|
}
|
||||||
|
|
||||||
default TransformStack rotate(Direction axis, float radians) {
|
default TransformStack rotate(Direction axis, float radians) {
|
||||||
if (radians == 0)
|
if (radians == 0)
|
||||||
return this;
|
return this;
|
||||||
|
|
Loading…
Reference in a new issue