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 TypeMethodDescriptionorg.joml.Vector2f
Get the maximum coordinate of the bounding boxorg.joml.Vector2f
Get the minimum coordinate of the bounding boxorg.joml.Vector2f
getSize()
Get the difference betweengetMaximum()
andgetMinimum()
-
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 betweengetMaximum()
andgetMinimum()
- Returns:
- Bounding box size
-