Add transform matrix check

Avoid unnecessary processing and erroneous behaviour
Add example transformation matrix