| Modifier and Type | Field and Description |
|---|---|
| private float | |
| private float | |
| private float | |
| private float |
| Access | Constructor and Description |
|---|---|
| public | RectBounds()
Create an axis aligned bounding rectangle object, with an empty bounds where maxX < minX and maxY < minY. |
| public | RectBounds(float minX, float minY, float maxX, float maxY)
Creates a RectBounds based on the minX, minY, maxX, and maxY values specified. |
| public | RectBounds(RectBounds other)
Creates a RectBounds object as a copy of the specified RectBounds object. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public boolean | |
| public boolean | |
| public boolean | Returns: Whether the other rect bounds is contained within this one, which also includes equivalence.The other rect bounds to check against. other)Determines whether the given |
| 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 obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public RectBounds | flattenInto(RectBounds 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 RectBounds The dimension along the Z-Axis, since this is a 2D bounds the return value is always 0.0f. |
| public float | getHeight()
Implements abstract com. Convenience function for getting the height of this RectBounds The dimension along the Y-Axis. |
| 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 RectBounds. |
| public void | |
| public int | |
| public boolean | intersects(float x, float y, float width, float height)
Implements abstract com.
|
| public boolean | |
| public void | |
| 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 RectBounds | |
| public void | roundOut()
Implements abstract com. Adjusts the edges of this RectBounds "outward" toward integral boundaries, such that the rounded bounding box will always full enclose the original bounding box. |
| public final void | |
| public final void | |
| public void | setBoundsAndSort(float minX, float minY, float maxX, float maxY)
Sets the bounds based on the given coords, and also ensures that after having done so that this RectBounds instance is normalized. |
| 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 | |
| protected void | |
| public String | |
| public void | |
| public void | |
| public void |
| maxX | back to summary |
|---|---|
| private float maxX | |
| maxY | back to summary |
|---|---|
| private float maxY | |
| minX | back to summary |
|---|---|
| private float minX | |
| minY | back to summary |
|---|---|
| private float minY | |
| RectBounds | back to summary |
|---|---|
| public RectBounds() Create an axis aligned bounding rectangle object, with an empty bounds where maxX < minX and maxY < minY. | |
| RectBounds | back to summary |
|---|---|
| public RectBounds(float minX, float minY, float maxX, float maxY) Creates a RectBounds based on the minX, minY, maxX, and maxY values specified. | |
| RectBounds | back to summary |
|---|---|
| public RectBounds(RectBounds other) Creates a RectBounds object as a copy of the specified RectBounds object. | |
| RectBounds | back to summary |
|---|---|
| public RectBounds(Rectangle other) Creates a RectBounds object as a copy of the specified RECTANGLE. | |
| add | back to summary |
|---|---|
| public void add(float x, float y, float z) Implements abstract com.
| |
| add | back to summary |
|---|---|
| public void add(float x, float y) | |
| 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(RectBounds other) Determines whether the given
| |
| 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(RectBounds other) | |
| 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 RectBounds The dimension along the Z-Axis, since this is a 2D bounds the return value is always 0.0f.
| |
| getHeight | back to summary |
|---|---|
| public float getHeight() Implements abstract com. Convenience function for getting the height of this RectBounds 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 RectBounds. The dimension along the X-Axis.
| |
| grow | back to summary |
|---|---|
| public void grow(float h, float v) | |
| 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(BaseBounds other) | |
| intersectWith | back to summary |
|---|---|
| public void intersectWith(BaseBounds other) Implements abstract com.
| |
| intersectWith | back to summary |
|---|---|
| public void intersectWith(Rectangle other) Implements abstract com.
| |
| intersectWith | back to summary |
|---|---|
| public void intersectWith(float minX, float minY, float maxX, float maxY) | |
| 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 RectBounds makeEmpty() Implements abstract com.
| |
| roundOut | back to summary |
|---|---|
| public void roundOut() Implements abstract com. Adjusts the edges of this RectBounds "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(RectBounds other) Set the bounds to match that of the RectBounds object specified. The specified bounds object must not be null. | |
| setBounds | back to summary |
|---|---|
| public final void setBounds(float minX, float minY, float maxX, float maxY) Set the bounds to the given values. | |
| setBoundsAndSort | back to summary |
|---|---|
| public void setBoundsAndSort(float minX, float minY, float maxX, float maxY) Sets the bounds based on the given coords, and also ensures that after having done so that this RectBounds instance is normalized. | |
| 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) | |
| setMinX | back to summary |
|---|---|
| public void setMinX(float minX) | |
| setMinY | back to summary |
|---|---|
| public void setMinY(float minY) | |
| 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(RectBounds other) | |
| unionWith | back to summary |
|---|---|
| public void unionWith(float minX, float minY, float maxX, float maxY) | |