Transformation helper function and fixed rotated box descriptor.