rect-clamp (npm): Constraint a Rectangle into another by preserving the ratio.
Keywords: rect|rectangle|2d|bound|clamp|constraints