class AdventOfCode2021::Day19::RotatingMatrix
- AdventOfCode2021::Day19::RotatingMatrix
- Reference
- Object
Overview
Matrix for ro>tation
Defined in:
day19/rotating_matrix.crConstant Summary
-
SIZE =
3
Constructors
Class Method Summary
Instance Method Summary
- #*(other : RotatingMatrix) : RotatingMatrix
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#==(other)
Returns
false(other can only be aValuehere). - #[](x : Int32, y : Int32)
- #[]=(x : Int32, y : Int32, value : Int32)
-
#m : Array(Int32)
The numbers represents the columns,
-
#m=(m : Array(Int32))
The numbers represents the columns,
- #pow(n : Int32) : RotatingMatrix
- #to_s(io)
Constructor Detail
Class Method Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
Returns false (other can only be a Value here).
The numbers represents the columns,
The 9 numbers in a row: m[0][0], m[0][1], m[0][2], m[1][0], m[1][1], m[1][2], m[2][0], m[2][1], m[2][2] represents the matrix as : [ m[0][0], m[1][0], m[2][0]] [ m[0][1], m[1][1], m[2][2]] [ m[0][2], m[1][2], m[2][3]]
The numbers represents the columns,
The 9 numbers in a row: m[0][0], m[0][1], m[0][2], m[1][0], m[1][1], m[1][2], m[2][0], m[2][1], m[2][2] represents the matrix as : [ m[0][0], m[1][0], m[2][0]] [ m[0][1], m[1][1], m[2][2]] [ m[0][2], m[1][2], m[2][3]]