getShortest method

double getShortest()

@return {number} The shorter of the two dimensions in the size.

Implementation

double getShortest()
{
  return Math.min(width, height);
}