=
INLINE {
RETURN [
SELECT t.orientation
FROM
identity => ImagerTransformation.Create[1, 0, t.translation.x, 0, 1, t.translation.y],
mirrorX => ImagerTransformation.Create[-1, 0, t.translation.x, 0, 1, t.translation.y],
rotate90 => ImagerTransformation.Create[0, -1, t.translation.x, 1, 0, t.translation.y],
rotate90X => ImagerTransformation.Create[0, 1, t.translation.x, 1, 0, t.translation.y],
rotate180 => ImagerTransformation.Create[-1, 0, t.translation.x, 0, -1, t.translation.y],
rotate180X => ImagerTransformation.Create[1, 0, t.translation.x, 0, -1, t.translation.y],
rotate270 => ImagerTransformation.Create[0, 1, t.translation.x, -1, 0, t.translation.y],
rotate270X => ImagerTransformation.Create[0, -1, t.translation.x, -1, 0, t.translation.y],
ENDCASE => ERROR
]};