From f7e8f8467ced9f494f8cafc51ca9e77038042905 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 14 Mar 2023 14:23:16 +0100 Subject: AABBox: Add API doc comment on reset() and hence default ctor regarding infinite dimension --- src/jogl/classes/com/jogamp/opengl/math/geom/AABBox.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/jogl/classes/com/jogamp/opengl/math') diff --git a/src/jogl/classes/com/jogamp/opengl/math/geom/AABBox.java b/src/jogl/classes/com/jogamp/opengl/math/geom/AABBox.java index 234b2121b..5a14406b0 100644 --- a/src/jogl/classes/com/jogamp/opengl/math/geom/AABBox.java +++ b/src/jogl/classes/com/jogamp/opengl/math/geom/AABBox.java @@ -56,8 +56,12 @@ public class AABBox { private final float[] center = new float[3]; /** - * Create an Axis Aligned bounding box (AABBox) - * where the low and and high MAX float Values. + * Create an Axis Aligned bounding box (AABBox) with the + * inverse low/high, allowing the next {@link #resize(float, float, float)} command to hit. + *

+ * The dimension, i.e. {@link #getWidth()} abd {@link #getHeight()} is {@link Float#isInfinite()} thereafter. + *

+ * @see #reset() */ public AABBox() { reset(); @@ -96,7 +100,10 @@ public class AABBox { } /** - * resets this box to the inverse low/high, allowing the next {@link #resize(float, float, float)} command to hit. + * Resets this box to the inverse low/high, allowing the next {@link #resize(float, float, float)} command to hit. + *

+ * The dimension, i.e. {@link #getWidth()} abd {@link #getHeight()} is {@link Float#isInfinite()} thereafter. + *

* @return this AABBox for chaining */ public final AABBox reset() { -- cgit v1.2.3