matrix property

Matrix4 get matrix

Maps a point through the rotation, then the zoom with its flip, then the pan.

Implementation

math.Matrix4 get matrix {
  return math.Matrix4.identity()
    ..translateByVector3(offset)
    ..scaleByDouble(flipX * totalScale, totalScale, 1, 1)
    ..rotateZ(totalRotate);
}