@Override // from Transform public Transform lerp (Transform other, float t) { if (generality() < other.generality()) { return other.lerp(this, -t); // TODO: is this correct? } AffineTransform ot = (other instanceof AffineTransform) ? (AffineTransform)other : new AffineTransform(other); return new AffineTransform( m00 + t*(ot.m00 - m00), m01 + t*(ot.m01 - m01), m10 + t*(ot.m10 - m10), m11 + t*(ot.m11 - m11), tx + t*(ot.tx - tx ), ty + t*(ot.ty - ty )); }
@Override // from Transform public Transform lerp (Transform other, float t) { if (generality() < other.generality()) { return other.lerp(this, -t); // TODO: is this correct? } AffineTransform ot = (other instanceof AffineTransform) ? (AffineTransform)other : new AffineTransform(other); return new AffineTransform( m00 + t*(ot.m00 - m00), m01 + t*(ot.m01 - m01), m10 + t*(ot.m10 - m10), m11 + t*(ot.m11 - m11), tx + t*(ot.tx - tx ), ty + t*(ot.ty - ty )); }
@Override // from Transform public Transform preConcatenate (Transform other) { if (generality() < other.generality()) { return other.concatenate(this); } if (other instanceof AffineTransform) { return Transforms.multiply((AffineTransform)other, this, new AffineTransform()); } else { AffineTransform oaff = new AffineTransform(other); return Transforms.multiply(oaff, this, oaff); } }
@Override // from Transform public Transform preConcatenate (Transform other) { if (generality() < other.generality()) { return other.concatenate(this); } if (other instanceof AffineTransform) { return Transforms.multiply((AffineTransform)other, this, new AffineTransform()); } else { AffineTransform oaff = new AffineTransform(other); return Transforms.multiply(oaff, this, oaff); } }
@Override // from Transform public Transform concatenate (Transform other) { if (generality() < other.generality()) { return other.preConcatenate(this); } if (other instanceof AffineTransform) { return Transforms.multiply(this, (AffineTransform)other, new AffineTransform()); } else { AffineTransform oaff = new AffineTransform(other); return Transforms.multiply(this, oaff, oaff); } }
@Override // from Transform public Transform concatenate (Transform other) { if (generality() < other.generality()) { return other.preConcatenate(this); } if (other instanceof AffineTransform) { return Transforms.multiply(this, (AffineTransform)other, new AffineTransform()); } else { AffineTransform oaff = new AffineTransform(other); return Transforms.multiply(this, oaff, oaff); } }