Factor out transform matrix setup code
We use the same or similar code in several places to set up a transform matrix. Let's pull out the common bits and try to simplify a bit.
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
We use the same or similar code in several places to set up a transform matrix. Let's pull out the common bits and try to simplify a bit.