struct AdventOfCode2021::Day22::Cuboid
- AdventOfCode2021::Day22::Cuboid
- Struct
- Value
- Object
Defined in:
day22/day22.crConstructors
- .new(op : AdventOfCode2021::Day22::Operation, x : AdventOfCode2021::Day22::Range, y : AdventOfCode2021::Day22::Range, z : AdventOfCode2021::Day22::Range)
- .new(str : String)
Instance Method Summary
- #==(other : Cuboid)
- #has_intersection?(other : Cuboid) : Bool
- #includes?(other : Cuboid) : Bool
- #intersection(other : Cuboid) : Cuboid
- #is_on?
- #op : Operation
- #op=(op : Operation)
- #size : Int64
- #split_by(other : Cuboid) : Array(Cuboid)
-
#to_s(io : IO) : Nil
Same as
#inspect(io)
. - #x : Range
- #x=(x : Range)
- #y : Range
- #y=(y : Range)
- #z : Range
- #z=(z : Range)
Constructor Detail
def self.new(op : AdventOfCode2021::Day22::Operation, x : AdventOfCode2021::Day22::Range, y : AdventOfCode2021::Day22::Range, z : AdventOfCode2021::Day22::Range)
#