mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +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));
|
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
|
@Override
|
||||||
public Vector apply(Vector vector) {
|
public Vector apply(Vector vector) {
|
||||||
return new Vector(
|
return new Vector(
|
||||||
@ -296,4 +300,9 @@ public class AffineTransform implements Transform {
|
|||||||
return new CombinedTransform(this, other);
|
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