Using a max an min point, find the ranges for each coordinate.
The smallest point in the matrix
The largest point in the matrix
The maximum ranges for the point. If null, the matrix will be used.
The number of available coordinates on each axis
Using a max an min point, find the ranges for each coordinate.