class AdventOfCode2021::Day19::Scanner

Included Modules

Defined in:

day19/scanner.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(id : Int32, beams : Array(AdventOfCode2021::Day19::Beam) = [] of Beam) #

[View source]

Instance Method Detail

def *(matrix : RotatingMatrix) : Scanner #

[View source]
def +(add : Beam) : Scanner #

[View source]
def ==(other : Scanner) #

[View source]
def ==(other) #
Description copied from class Reference

Returns false (other can only be a Value here).


[View source]
def [](i : Int32) #

[View source]
def beams : Array(AdventOfCode2021::Day19::Beam) #

[View source]
def beams=(beams : Array(AdventOfCode2021::Day19::Beam)) #

[View source]
def each(&) #
Description copied from module Enumerable(AdventOfCode2021::Day19::Beam)

Must yield this collection's elements to the block.


[View source]
def id : Int32 #

[View source]
def id=(id : Int32) #

[View source]
def size #
Description copied from module Enumerable(AdventOfCode2021::Day19::Beam)

Returns the number of elements in the collection.

[1, 2, 3, 4].size # => 4

[View source]