Interpret matrix as transformation (#692)

Interpret matrix as transformation (#692)

Identify scaling, shearing, rotation, or projection from matrix entries.