Sketchbook::Rect
Inherits Struct < Value < Object
Represents a logical rectangle with an origin and corner points.
Constructors
new(origin : Point, corner : Point)
Instance methods
clone
copy_with(origin _origin = @origin, corner _corner = @corner)
corner
includes?(point : Point)
Returns whether this rectangle includes other point.
includes?(other : Rect)
Returns whether this rectangle includes other rectangle (in its entirety).
intersects?(other : Rect)
Returns whether this rectangle intersects with other rectangle.
origin