Possibly fixes #422

This commit is contained in:
Jesse Boyd 2017-02-13 15:08:09 +11:00
parent 4d09354bd4
commit 2c119c468c
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -275,14 +275,14 @@ public class AffineTransform implements Transform {
// vector.getX() * m00 + vector.getY() * m01 + vector.getZ() * m02 + m03
// vector.getX() * m10 + vector.getY() * m11 + vector.getZ() * m12 + m13
// vector.getX() * m20 + vector.getY() * m21 + vector.getZ() * m22 + m23
mutable.mutX((vector.getX() * m00 + vector.getY() * m01 + vector.getZ() * m02 + m03));
mutable.mutY((vector.getX() * m10 + vector.getY() * m11 + vector.getZ() * m12 + m13));
mutable.mutZ((vector.getX() * m20 + vector.getY() * m21 + vector.getZ() * m22 + m23));
return mutable;
// return new Vector(
// vector.getX() * m00 + vector.getY() * m01 + vector.getZ() * m02 + m03,
// vector.getX() * m10 + vector.getY() * m11 + vector.getZ() * m12 + m13,
// vector.getX() * m20 + vector.getY() * m21 + vector.getZ() * m22 + m23);
return new Vector(
vector.getX() * m00 + vector.getY() * m01 + vector.getZ() * m02 + m03,
vector.getX() * m10 + vector.getY() * m11 + vector.getZ() * m12 + m13,
vector.getX() * m20 + vector.getY() * m21 + vector.getZ() * m22 + m23);
// mutable.mutX((vector.getX() * m00 + vector.getY() * m01 + vector.getZ() * m02 + m03));
// mutable.mutY((vector.getX() * m10 + vector.getY() * m11 + vector.getZ() * m12 + m13));
// mutable.mutZ((vector.getX() * m20 + vector.getY() * m21 + vector.getZ() * m22 + m23));
// return mutable;
}
public AffineTransform combine(AffineTransform other) {