Made InnerModel::transform optionally return rotation angles and implemented InnerModel::rotationAngles.