code: public static <S extends Shape> S resize(final S shape, final double size) {
          return resize(shape, size, size);
      }
docs: Method resize the given {@code Shape} with respect of its original aspect ratio but independent of its original size.
  
  Note: Out of performance reasons the given object will directly be manipulated.
  
  @param shape the shape to scale.
  @param size the size of the new shape.
  @return the scaled {@code Shape} instance.