getLongest method

double getLongest()

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

Implementation

double getLongest()
{
  return Math.max(width, height);
}