@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 )); }