struct Geometry::Rectangle

Defined in:

geometry/rectangle.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(top_left : Geometry::Point, bottom_right : Geometry::Point) #

[View source]

Instance Method Detail

def area #

[View source]
def bottom_right : Point #

[View source]
def height #

[View source]
def intersects(other : Rectangle) : Bool #

[View source]
def perimeter #

[View source]
def top_left : Point #

[View source]
def width #

[View source]