Uses of Class
toxi.geom.Rect
Package
Description
-
Uses of Rect in toxi.geom
Modifier and TypeClassDescriptionclass
Implements a spatial subdivision tree to work efficiently with large numbers of 2D particles.Modifier and TypeMethodDescriptionRect.copy()
Creates a copy of this rectanglestatic final Rect
Rect.fromCenterExtent
(ReadonlyVec2D center, Vec2D extent) Factory method, constructs a new rectangle from a center point and extent vector.static final Rect
Rect.getBoundingRect
(List<? extends Vec2D> points) Factory method, computes & returns the bounding rect for the given list of points.Ellipse.getBounds()
Returns the ellipse's bounding rect.Line2D.getBounds()
Returns the line's bounding rect.LineStrip2D.getBounds()
Polygon2D.getBounds()
Returns the polygon's bounding rect.Rect.getBounds()
Only provided because the Rect class implementsShape2D
.Shape2D.getBounds()
Returns the shape's axis-aligned bounding rect.SutherlandHodgemanClipper.getBounds()
Triangle2D.getBounds()
Rect.growToContainPoint
(ReadonlyVec2D p) final Rect
Rect.intersectionRectWith
(Rect r) Creates a new rectangle by forming the intersection of this rectangle and the given other rect.Rect.scale
(float s) final Rect
Rect.set
(float x, float y, float w, float h) Sets new bounds for this rectangle.final Rect
final Rect
Rect.setDimension
(Vec2D dim) final Rect
Rect.setPosition
(Vec2D pos) Rect.translate
(float dx, float dy) Rect.translate
(ReadonlyVec2D offset) final Rect
Deprecated.final Rect
Rect.unionRectWith
(Rect r) Creates a new rectangle by forming an union of this rectangle and the given other Rect.Modifier and TypeMethodDescriptionForcefully fits the vector in the given rectangle.ReadonlyVec2D.getConstrained
(Rect r) Creates a copy of the vector which forcefully fits in the given rectangle.final Vec2D
Vec2D.getConstrained
(Rect r) final Rect
Rect.intersectionRectWith
(Rect r) Creates a new rectangle by forming the intersection of this rectangle and the given other rect.boolean
Polygon2D.intersectsRect
(Rect r) boolean
Rect.intersectsRect
(Rect r) Checks if this rectangle intersects/overlaps the given one.boolean
ReadonlyVec2D.isInRectangle
(Rect r) Checks if the point is inside the given rectangle.boolean
Vec2D.isInRectangle
(Rect r) PointQuadtree.itemsWithinRect
(Rect bounds, List<Vec2D> results) final Rect
void
final Rect
Deprecated.useunionRectWith(Rect)
instead.final Rect
Rect.unionRectWith
(Rect r) Creates a new rectangle by forming an union of this rectangle and the given other Rect. -
Uses of Rect in toxi.physics2d
Modifier and TypeFieldDescriptionVerletParticle2D.bounds
Bounding box, by default set to null to disableModifier and TypeMethodDescriptionVerletPhysics2D.getCurrentBounds()
VerletPhysics2D.getWorldBounds()
-
Uses of Rect in toxi.physics2d.constraints
ModifierConstructorDescriptionRectConstraint
(Rect rect) RectConstraint
(Rect rect, boolean isContainer) -
Uses of Rect in toxi.processing
-
Uses of Rect in toxi.sim.grayscott
unionRectWith(Rect)
instead.