struct Day17::Line

Defined in:

day17.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(x1 : Int32, y1 : Int32, x2 : Int32, y2 : Int32, vertical : Bool) #

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

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(x1 _x1 = @x1, y1 _y1 = @y1, x2 _x2 = @x2, y2 _y2 = @y2, vertical _vertical = @vertical) #

[View source]
def draw(&) #

[View source]
def vertical : Bool #

def x1 : Int32 #

def x2 : Int32 #

def y1 : Int32 #

def y2 : Int32 #