More util functions, translate + rotate coordinate system.