struct

AoC2019::Day3::Line

Inherits Struct < Value < Object

Constructors

new(p1 : Point, p2 : Point)
Source

Instance methods

horizontal?
Source
includes?(point : Point)
Source
intersection(other : Line)
Source
length
Source
step_to(point : Point)
Source
to_s(io : IO)

Same as #inspect(io).

Source
vertical?
Source