Find the range of the matrix from smallest to largest point.
The matrix that the point will be contained within.
The maximum ranges for the point. If null, the matrix will be used.
The number of available coordinates on each axis
Find the range of the matrix from smallest to largest point.