Initializes a new instance of this object.
The numeric sides of a quadrilateral.
Calculates the bottom center point of the rectangle.
Calculates the bottom left point of the rectangle.
Calculates the bottom right point of the rectangle.
Calculates the middle center point of the rectangle.
Calculates the middle left point of the rectangle.
Calculates the middle right point of the rectangle.
ReadonlysidesThe numeric sides of a quadrilateral.
Calculates the top center point of the rectangle.
Calculates the top left point of the rectangle.
Calculates the top right point of the rectangle.
Calculates the area of the rectangle.
The numeric area of the rectangle.
Takes a candidate and attaches it to this rectangle that matches the anchor points.
The anchor point of this rectangle.
The candidate rectangle to move
The anchor point of the candidate rectangle.
A new quadrilateral that has it's placement such that if candidate was moved to this resulting position, would have its candidateAnchor be in the same place as this rectangles specified anchor.
Calculates the height of the rectangle.
The numeric height of the rectangle.
Takes the candidate quadrilateral and adjusts it's coordinates to fit inside this rectangle.
This is done by shifting the rectangle left, right, up, and down to make sure it is bounded inside.
If the candidate width or height is larger than this rectangle, thus it cannot fit, then the candidate will be centered on the dimension where it is too big to fit.
The candidate quadrilateral to fit.
A new quadrilateral that offsets candidate so that it can fit inside this rectangle.
Calculates the width of the rectangle.
The numeric width of the rectangle.
Represents a helper object that can run calculations on a numeric quadrilateral.