| Modifier and Type | Field and Description |
|---|---|
| private float | |
| private float | |
| private float | |
| private float | |
| private float | |
| private float |
| Access | Constructor and Description |
|---|---|
| public | BoxBounds()
Create an axis aligned bounding box object, with an empty bounds where maxX < minX, maxY < minY and maxZ < minZ. |
| public | BoxBounds(float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
Creates an axis aligned bounding box based on the minX, minY, minZ, maxX, maxY, and maxZ values specified. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public BaseBounds | |
| public BaseBounds | deriveWithNewBounds(Rectangle other)
Implements abstract com.
|
| public BaseBounds | deriveWithNewBounds(BaseBounds other)
Implements abstract com.
|
| public BaseBounds | deriveWithNewBounds(float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
Implements abstract com.
|
| public BaseBounds | deriveWithNewBoundsAndSort(float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
Implements abstract com.
|
| public BaseBounds | deriveWithPadding(float h, float v, float d)
Implements abstract com.
|
| public BaseBounds | deriveWithUnion(BaseBounds other)
Implements abstract com.
|
| public boolean | disjoint(float x, float y, float width, float height)
Implements abstract com.
|
| public boolean | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public RectBounds | flattenInto(RectBounds
The bounds to fill with values, or null. If null, a new RectBounds
is returned. If not null, the given bounds will be populated and
then returned bounds)Implements abstract com. Sets the given RectBounds (or creates a new instance of bounds is null) to have the minX, minY, maxX, and maxY of this BoxBounds, dropping the Z values. |
| public BaseBounds. | |
| public float | getDepth()
Implements abstract com. Convenience function for getting the depth of this bounds. |
| public float | getHeight()
Implements abstract com. Convenience function for getting the height of this bounds. |
| public Vec2f | |
| public Vec3f | |
| public float | |
| public float | |
| public float | |
| public Vec2f | |
| public Vec3f | |
| public float | |
| public float | |
| public float | |
| public float | getWidth()
Implements abstract com. Convenience function for getting the width of this bounds. |
| public void | |
| public int | |
| public boolean | intersects(float x, float y, float width, float height)
Implements abstract com.
|
| public boolean | |
| public boolean | |
| public void | |
| public void | |
| public void | intersectWith(float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
Implements abstract com.
|
| public boolean | is2D()
Implements abstract com. Return true if this bounds is of a 2D BoundsType, else false. |
| public boolean | |
| public BoxBounds | |
| public void | roundOut()
Implements abstract com. Adjusts the edges of this BoxBounds "outward" toward integral boundaries, such that the rounded bounding box will always full enclose the original bounding box. |
| public final void | |
| public final void | setBounds(float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
Set the bounds to the given values. |
| public void | setBoundsAndSort(float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
Implements abstract com.
|
| public void | setBoundsAndSort(Point2D p1, Point2D p2)
Implements abstract com. Sets the bounds based on the given points, and also ensures that after having done so that this bounds instance is sorted (x1<=x2 and y1<=y2). |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| protected void | |
| public String | |
| public void | |
| public void | |
| public void |
| maxX | back to summary |
|---|---|
| private float maxX | |
| maxY | back to summary |
|---|---|
| private float maxY | |
| maxZ | back to summary |
|---|---|
| private float maxZ | |
| minX | back to summary |
|---|---|
| private float minX | |
| minY | back to summary |
|---|---|
| private float minY | |
| minZ | back to summary |
|---|---|
| private float minZ | |
| BoxBounds | back to summary |
|---|---|
| public BoxBounds() Create an axis aligned bounding box object, with an empty bounds where maxX < minX, maxY < minY and maxZ < minZ. | |
| BoxBounds | back to summary |
|---|---|
| public BoxBounds(float minX, float minY, float minZ, float maxX, float maxY, float maxZ) Creates an axis aligned bounding box based on the minX, minY, minZ, maxX, maxY, and maxZ values specified. | |
| BoxBounds | back to summary |
|---|---|
| public BoxBounds(BoxBounds other) Creates an axis aligned bounding box as a copy of the specified BoxBounds object. | |
| add | back to summary |
|---|---|
| public void add(float x, float y, float z) Implements abstract com.
| |
| add | back to summary |
|---|---|
| public void add(Point2D p) Implements abstract com.
| |
| contains | back to summary |
|---|---|
| public boolean contains(Point2D p) Implements abstract com.
| |
| contains | back to summary |
|---|---|
| public boolean contains(float x, float y) Implements abstract com.
| |
| contains | back to summary |
|---|---|
| public boolean contains(float x, float y, float z) | |
| contains | back to summary |
|---|---|
| public boolean contains(float x, float y, float z, float width, float height, float depth) | |
| copy | back to summary |
|---|---|
| public BaseBounds copy() Implements abstract com. Doc from com. Duplicates this instance. This differs from deriveWithNewBounds(other) where "other" would be this, in that derive methods may return the same instance, whereas copy will always return a new instance.
| |
| deriveWithNewBounds | back to summary |
|---|---|
| public BaseBounds deriveWithNewBounds(Rectangle other) Implements abstract com.
| |
| deriveWithNewBounds | back to summary |
|---|---|
| public BaseBounds deriveWithNewBounds(BaseBounds other) Implements abstract com.
| |
| deriveWithNewBounds | back to summary |
|---|---|
| public BaseBounds deriveWithNewBounds(float minX, float minY, float minZ, float maxX, float maxY, float maxZ) Implements abstract com.
| |
| deriveWithNewBoundsAndSort | back to summary |
|---|---|
| public BaseBounds deriveWithNewBoundsAndSort(float minX, float minY, float minZ, float maxX, float maxY, float maxZ) Implements abstract com.
| |
| deriveWithPadding | back to summary |
|---|---|
| public BaseBounds deriveWithPadding(float h, float v, float d) Implements abstract com.
| |
| deriveWithUnion | back to summary |
|---|---|
| public BaseBounds deriveWithUnion(BaseBounds other) Implements abstract com.
| |
| disjoint | back to summary |
|---|---|
| public boolean disjoint(float x, float y, float width, float height) Implements abstract com.
| |
| disjoint | back to summary |
|---|---|
| public boolean disjoint(float x, float y, float z, float width, float height, float depth) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| flattenInto | back to summary |
|---|---|
| public RectBounds flattenInto(RectBounds bounds) Implements abstract com. Doc from com. Sets the given RectBounds (or creates a new instance of bounds is null) to have the minX, minY, maxX, and maxY of this BoxBounds, dropping the Z values.
| |
| getBoundsType | back to summary |
|---|---|
| public BaseBounds. Implements abstract com.
| |
| getDepth | back to summary |
|---|---|
| public float getDepth() Implements abstract com. Convenience function for getting the depth of this bounds. The dimension along the Z-Axis.
| |
| getHeight | back to summary |
|---|---|
| public float getHeight() Implements abstract com. Convenience function for getting the height of this bounds. The dimension along the Y-Axis.
| |
| getMax | back to summary |
|---|---|
| public Vec2f getMax(Vec2f max) Implements abstract com.
| |
| getMax | back to summary |
|---|---|
| public Vec3f getMax(Vec3f max) Implements abstract com.
| |
| getMaxX | back to summary |
|---|---|
| public float getMaxX() Implements abstract com.
| |
| getMaxY | back to summary |
|---|---|
| public float getMaxY() Implements abstract com.
| |
| getMaxZ | back to summary |
|---|---|
| public float getMaxZ() Implements abstract com.
| |
| getMin | back to summary |
|---|---|
| public Vec2f getMin(Vec2f min) Implements abstract com.
| |
| getMin | back to summary |
|---|---|
| public Vec3f getMin(Vec3f min) Implements abstract com.
| |
| getMinX | back to summary |
|---|---|
| public float getMinX() Implements abstract com.
| |
| getMinY | back to summary |
|---|---|
| public float getMinY() Implements abstract com.
| |
| getMinZ | back to summary |
|---|---|
| public float getMinZ() Implements abstract com.
| |
| getWidth | back to summary |
|---|---|
| public float getWidth() Implements abstract com. Convenience function for getting the width of this bounds. The dimension along the X-Axis.
| |
| grow | back to summary |
|---|---|
| public void grow(float h, float v, float d) | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| intersects | back to summary |
|---|---|
| public boolean intersects(float x, float y, float width, float height) Implements abstract com.
| |
| intersects | back to summary |
|---|---|
| public boolean intersects(float x, float y, float z, float width, float height, float depth) | |
| intersects | back to summary |
|---|---|
| public boolean intersects(BaseBounds other) | |
| intersectWith | back to summary |
|---|---|
| public void intersectWith(Rectangle other) Implements abstract com.
| |
| intersectWith | back to summary |
|---|---|
| public void intersectWith(BaseBounds other) Implements abstract com.
| |
| intersectWith | back to summary |
|---|---|
| public void intersectWith(float minX, float minY, float minZ, float maxX, float maxY, float maxZ) Implements abstract com.
| |
| is2D | back to summary |
|---|---|
| public boolean is2D() Implements abstract com. Doc from com. Return true if this bounds is of a 2D BoundsType, else false.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements abstract com.
| |
| makeEmpty | back to summary |
|---|---|
| public BoxBounds makeEmpty() Implements abstract com.
| |
| roundOut | back to summary |
|---|---|
| public void roundOut() Implements abstract com. Adjusts the edges of this BoxBounds "outward" toward integral boundaries, such that the rounded bounding box will always full enclose the original bounding box.
| |
| setBounds | back to summary |
|---|---|
| public final void setBounds(BaseBounds other) Set the bounds to match that of the BaseBounds object specified. The specified bounds object must not be null. | |
| setBounds | back to summary |
|---|---|
| public final void setBounds(float minX, float minY, float minZ, float maxX, float maxY, float maxZ) Set the bounds to the given values. | |
| setBoundsAndSort | back to summary |
|---|---|
| public void setBoundsAndSort(float minX, float minY, float minZ, float maxX, float maxY, float maxZ) Implements abstract com.
| |
| setBoundsAndSort | back to summary |
|---|---|
| public void setBoundsAndSort(Point2D p1, Point2D p2) Implements abstract com. Doc from com. Sets the bounds based on the given points, and also ensures that after having done so that this bounds instance is sorted (x1<=x2 and y1<=y2).
| |
| setMaxX | back to summary |
|---|---|
| public void setMaxX(float maxX) | |
| setMaxY | back to summary |
|---|---|
| public void setMaxY(float maxY) | |
| setMaxZ | back to summary |
|---|---|
| public void setMaxZ(float maxZ) | |
| setMinX | back to summary |
|---|---|
| public void setMinX(float minX) | |
| setMinY | back to summary |
|---|---|
| public void setMinY(float minY) | |
| setMinZ | back to summary |
|---|---|
| public void setMinZ(float minZ) | |
| sortMinMax | back to summary |
|---|---|
| protected void sortMinMax() Implements abstract com.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| translate | back to summary |
|---|---|
| public void translate(float x, float y, float z) Implements abstract com.
| |
| unionWith | back to summary |
|---|---|
| public void unionWith(BaseBounds other) | |
| unionWith | back to summary |
|---|---|
| public void unionWith(float minX, float minY, float minZ, float maxX, float maxY, float maxZ) | |