transform: Normalize angles before the 0 check
Otherwise we might end up with 0 degree rotations and our code assumes that this never happens.
In particular it returns NULL from inverting and that's an error condition.
Tests included.
Otherwise we might end up with 0 degree rotations and our code assumes that this never happens.
In particular it returns NULL from inverting and that's an error condition.
Tests included.