compose method

ZoomTransform compose(
  1. ZoomTransform other
)

Composes this transform with another.

Implementation

ZoomTransform compose(ZoomTransform other) {
  return ZoomTransform(
    scale: scale * other.scale,
    translateX: translateX * other.scale + other.translateX,
    translateY: translateY * other.scale + other.translateY,
  );
}