Package-level declarations
Types
Save data frames for later retrieval.
This exception should never be thrown.
Functions
Given a size and an aspect ratio, resize the area to fit that aspect ratio. If the desired aspect ratio is smaller than the one of the provided size, the size will be cropped to match. If the desired aspect ratio is larger than the that of the provided size, then the size will be expanded to match.
Return a rect that is the intersection of two other rects
Determine the maximum size of rectangle with a given aspect ratio (X/Y) that can fit inside the specified area.
Determine the minimum size of rectangle with a given aspect ratio (X/Y) that a specified area can fit inside.
Project a region of interest from one Rect to another. For example, given the rect and region of interest:
Takes a relation between a region of interest and a size and projects the region of interest to that new location
Calculate the position of the Size surrounding the surroundedSize. This makes a few assumptions:
Scale up a Size so that it fills a containingSize while maintaining its original aspect ratio.
Scale a size based on percentage scale values, and keep track of its position.
Converts a size to rectangle with the top left corner at 0,0
Transpose a size's width and height.