swayze_math library

This package includes some utility classes to perform geometric operations on a spreadsheet UI

Classes

IntVector2
A 2D vector of ints
MatrixMap<T>
A data structure that organizes items of T in a 2d map with int keys.
MatrixMapIterableResult<T>
Holds the value and position of an item in a MatrixMapReadOnly.
MatrixMapReadOnly<T>
A read only interface for instances of MatrixMap
Range
Defines a continuous range of integers from start to end.
Range2D
Defines an underlying rectangle in an int universe. Each dimension can be defined by a Range
RangeCompactList
A list of ranges that keeps with the smallest possible size (no overlaps between its members)
RangeIterable
RangeIterator
An int Iterator that allows getting elements of a Range one at a time.

Typedefs

MatrixMapIterator<T> = void Function(T item, int colIndex, int rowIndex)
A function signature to iterate on a MatrixMap of type T
MaybeMatrixMapIterator<T> = void Function(T? item, int colIndex, int rowIndex)
A function signature to iterate on a MatrixMap of type T