struct Sketchbook::Rect
- Sketchbook::Rect
- Struct
- Value
- Object
Overview
Represents a logical rectangle with an origin and corner points.
Defined in:
sys/rect.crConstructors
Instance Method Summary
- #clone
- #copy_with(origin _origin = @origin, corner _corner = @corner)
- #corner : Point
- #includes?(point : 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 : Point
Constructor Detail
Instance Method Detail
Returns whether this rectangle includes other rectangle (in its entirety).
Returns whether this rectangle intersects with other rectangle.