src/neon/rendering/RenderSystem.java
/**
   * Draws a rectangle if it is in view.
   *
   * @param graphics the graphics object used to draw the game's graphics
   * @param rectangle the rectangle to be drawn
   */
Draws a rectangle if it is in view.
@param graphics the graphics object used to draw the game's graphics
@param rectangle the rectangle to be drawn
Draws a rectangle if it is in view . @param graphics the graphics object used to draw the game ' s graphics @param rectangle the rectangle to be drawn
public static void smartDrawRectangle(Graphics graphics, DrawableShape rectangle) {
    if (isHitboxInView(rectangle.hitbox)) {
      drawRectangle(graphics, rectangle);
    }
  }
public static void smartDrawRectangle ( Graphics graphics , DrawableShape rectangle ) { if ( isHitboxInView ( rectangle . hitbox ) ) { drawRectangle ( graphics , rectangle ) ; } }
Draws a rectangle if it is in view.
Draws a rectangle if it is in view .