DiagonalVectorExtension<T> extension
Methods
-
diagonal([int offset = 0])
→ Vector<T>
-
Returns a mutable diagonal Vector of this Matrix. Throws a
RangeError, if
offset
is out of bounds. An offset of 0
refers to the
diagonal in the center of the matrix, a negative offset to the diagonals
above, and a positive offset to the diagonals below.
-
diagonalUnchecked([int offset = 0])
→ Vector<T>
-
Returns a mutable diagonal Vector of this Matrix. The behavior is
undefined, if
offset
is out of bounds. An offset of 0
refers to the
diagonal in the center of the matrix, a negative offset to the diagonals
above, and a positive offset to the diagonals below.