Merge "sdm: Use double instead of float in rectangle mapping calculation"