spR method

double spR(
  1. double percent
)

Implementation

double spR(double percent) {
  if (orientation == Orientation.landscape) {
    return (height / 3) * percent / 100;
  }
  return (width / 3) * percent / 100;
}