DoubleRect
Protected Class DoubleRect
Description
piDogGeometry.DoubleRect is a rect class that parallels most of REALbasic.Rect but uses Double values.
Methods
Clone
Returns a copy of this rectangle
Constructor

create a new rectangle with the specified bounds and rotation
create a new DoubleRect from a realbasic.rect
Contains
Whether this rect contains other DoubleRect.
whether this rect contains the other piDogGeometry.DoublePoint
whether this rect contains the other REALbasic.Point
Whether this rect contains other REALbasic.Rect.
HorizontalCenter
the middle of the rect
Intersection
the area where this rect overlaps the other rect
the area where this rect overlaps the other REALbasic.Rect
Intersects
whether this rect Intersects (but not contains or is contained by) other DoubleRect
whether this rect intersects(but does not contain or is contained by) other REALbasic.rect
Operator_Add
Allows the adding of 2 rect areas together
Operator_Compare
Whether the two rects are equal
Operator_Convert
a realbasic.rect from this rect
operator_divide

Returns an array of rects representing the left operand split at the borderlines of the other rect
Operator_Modulo
Returns an array of rects representing the area left over when 2 overlapping rects are united
Operator_Subtract
Returns an array of rects representing the area left over when one rect is removed from the other
Overlaps
Whether this rect intersects, contains, or is contained by, other rect
Whether this rect intersects, contains, or is contained by, other rect
RotatedRect
The area consumed by this rect when rotation is applied
split
returns an array of rects representing a union of the two divided at each edge of both rects
SplitHorizontal
return a new rect at x, inluding the right part of this rect. this rect is resized down to x width
SplitVertical
returns a new rect at y, encompasing the bottom of this rect. This rect is resized to y height.
Union
returns a new rect encompassing this rect and other rect
returns a new rect encompassing this rect and other rect
UnionWithRotation
returns a new rect encompassing this rect's RotatedRect and other rect's RotatedRect
VerticalCenter
vertical middle point
Properties
bottom
top+height
Center
point at center of rect. Setting changes top and left.
height
height of the rect
left
left edge of the rect
right
right edge of the rect
Rotation
rotation in Radians to be applied for RotatedRect
top
top edge of this rect
width
width of this rect
Structures