aspectRatioOfContent method
Calculates the aspect ratio of the content within the matrix.
Returns the height-to-width ratio of the bounding box containing all true cells.
Implementation
double aspectRatioOfContent() {
final IntRect rect = getContentRect();
return rect.height / rect.width; // Aspect ratio
}