Interface RenderBounds


public interface RenderBounds
2D bounding box of coordinates on a Screen.

Both the minimum and maximum positions can be converted to world coordinates with Screen.screenToWorld(Vector2f, Vector3f).

  • Method Summary

    Modifier and Type
    Method
    Description
    org.joml.Vector2f
    Get the maximum coordinate of the bounding box
    org.joml.Vector2f
    Get the minimum coordinate of the bounding box
    org.joml.Vector2f
    Get the difference between getMaximum() and getMinimum()
  • Method Details

    • getMinimum

      org.joml.Vector2f getMinimum()
      Get the minimum coordinate of the bounding box
      Returns:
      Minimum bounding box position
    • getMaximum

      org.joml.Vector2f getMaximum()
      Get the maximum coordinate of the bounding box
      Returns:
      Maximum bounding box position
    • getSize

      org.joml.Vector2f getSize()
      Get the difference between getMaximum() and getMinimum()
      Returns:
      Bounding box size