mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-05 04:16:06 +00:00
Added AffineTransform.scale(Vector).
This commit is contained in:
parent
c5bd8704ea
commit
83e141bfb0
@ -280,6 +280,10 @@ public class AffineTransform implements Transform {
|
||||
return concatenate(new AffineTransform(sx, 0, 0, 0, 0, sy, 0, 0, 0, 0, sz, 0));
|
||||
}
|
||||
|
||||
public AffineTransform scale(Vector vec) {
|
||||
return scale(vec.getX(), vec.getY(), vec.getZ());
|
||||
}
|
||||
|
||||
@Override
|
||||
public Vector apply(Vector vector) {
|
||||
return new Vector(
|
||||
@ -296,4 +300,9 @@ public class AffineTransform implements Transform {
|
||||
return new CombinedTransform(this, other);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Affine[%g %g %g %g, %g %g %g %g, %g %g %g %g]}", m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user