struct Day3::Rect

Defined in:

day3.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(id : Int32, x : Int32, y : Int32, w : Int32, h : Int32) #

[View source]
def self.new(astring) #

[View source]

Instance Method Detail

def area #

[View source]
def check(other : Rect) : IntersectType | Rect #

[View source]
def clone #

[View source]
def copy_with(id _id = @id, x _x = @x, y _y = @y, w _w = @w, h _h = @h) #

[View source]
def fully_contains?(other : Rect) #

[View source]
def h : Int32 #

def id : Int32 #

def w : Int32 #

def x : Int32 #

def x2 #

[View source]
def y : Int32 #

def y2 #

[View source]