mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-26 22:40:21 +01:00
Partially revert 083c083188
for Transformation (#11798)
* Partially revert 083c083188
for Transformation
The type is used in a way that requires mutability
* keep copy in ctors
This commit is contained in:
parent
aa2c52baac
commit
d0d0efee02
1 changed files with 4 additions and 4 deletions
|
@ -52,7 +52,7 @@ public class Transformation {
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
public Vector3f getTranslation() {
|
public Vector3f getTranslation() {
|
||||||
return new Vector3f(this.translation);
|
return this.translation;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -62,7 +62,7 @@ public class Transformation {
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
public Quaternionf getLeftRotation() {
|
public Quaternionf getLeftRotation() {
|
||||||
return new Quaternionf(this.leftRotation);
|
return this.leftRotation;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -72,7 +72,7 @@ public class Transformation {
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
public Vector3f getScale() {
|
public Vector3f getScale() {
|
||||||
return new Vector3f(this.scale);
|
return this.scale;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -82,7 +82,7 @@ public class Transformation {
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
public Quaternionf getRightRotation() {
|
public Quaternionf getRightRotation() {
|
||||||
return new Quaternionf(this.rightRotation);
|
return this.rightRotation;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue