code: public static Rectangle getSquareClip(final double side, final double roundedRadius) {
          final Rectangle rectangle = new Rectangle();
          rectangle.setHeight(side);
          rectangle.setWidth(side);
          rectangle.setArcWidth(roundedRadius);
          rectangle.setArcHeight(roundedRadius);
          return rectangle;
      }
docs: Builds a clip-ready rounded corners {@link Rectangle} that is square.
  
  @param side          The size of the size of this square
  @param roundedRadius The radius of this square's corners rounding
  
  @return A square with the given side size and rounded corners with the given radius