Package util.debug

Class DebugRect


public class DebugRect extends DebugPrimitive
A Rectangle Primitive for the Debug Renderer
  • Field Summary

    Fields inherited from class util.debug.DebugPrimitive

    lines
  • Constructor Summary

    Constructors
    Constructor
    Description
    DebugRect(float x, float y, float width, float height, Color color)
    Constructs the Rectangle at given x, y location with width and height and specified color
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    reset(float x, float y, float width, float height)
    Recalculates start and end points of the lines

    Methods inherited from class util.debug.DebugPrimitive

    getLines

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DebugRect

      public DebugRect(float x, float y, float width, float height, Color color)
      Constructs the Rectangle at given x, y location with width and height and specified color
      Parameters:
      x - x position of the rect
      y - y position of the rect
      width - width of the rect
      height - height of the rect
      color - color of the rect
  • Method Details

    • reset

      public void reset(float x, float y, float width, float height)
      Recalculates start and end points of the lines
      Parameters:
      x - x position of the rect
      y - y position of the rect
      width - width of the rect
      height - height of the rect