Uses of Class
toxi.geom.Rect
Packages that use Rect
Package
Description
-
Uses of Rect in toxi.geom
Modifier and TypeClassDescriptionclassImplements a spatial subdivision tree to work efficiently with large numbers of 2D particles.Modifier and TypeMethodDescriptionRect.copy()Creates a copy of this rectanglestatic final RectRect.fromCenterExtent(ReadonlyVec2D center, Vec2D extent) Factory method, constructs a new rectangle from a center point and extent vector.static final RectRect.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 RectRect.intersectionRectWith(Rect r) Creates a new rectangle by forming the intersection of this rectangle and the given other rect.Rect.scale(float s) final RectRect.set(float x, float y, float w, float h) Sets new bounds for this rectangle.final Rectfinal RectRect.setDimension(Vec2D dim) final RectRect.setPosition(Vec2D pos) Rect.translate(float dx, float dy) Rect.translate(ReadonlyVec2D offset) final RectDeprecated.final RectRect.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 Vec2DVec2D.getConstrained(Rect r) final RectRect.intersectionRectWith(Rect r) Creates a new rectangle by forming the intersection of this rectangle and the given other rect.booleanPolygon2D.intersectsRect(Rect r) booleanRect.intersectsRect(Rect r) Checks if this rectangle intersects/overlaps the given one.booleanReadonlyVec2D.isInRectangle(Rect r) Checks if the point is inside the given rectangle.booleanVec2D.isInRectangle(Rect r) PointQuadtree.itemsWithinRect(Rect bounds, List<Vec2D> results) final Rectvoidfinal RectDeprecated.useunionRectWith(Rect)instead.final RectRect.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
Fields in toxi.physics2d declared as RectModifier and TypeFieldDescriptionVerletParticle2D.boundsBounding box, by default set to null to disableMethods in toxi.physics2d that return RectModifier and TypeMethodDescriptionVerletPhysics2D.getCurrentBounds()VerletPhysics2D.getWorldBounds()Methods in toxi.physics2d with parameters of type Rect -
Uses of Rect in toxi.physics2d.constraints
Methods in toxi.physics2d.constraints that return RectMethods in toxi.physics2d.constraints with parameters of type RectConstructors in toxi.physics2d.constraints with parameters of type RectModifierConstructorDescriptionRectConstraint(Rect rect) RectConstraint(Rect rect, boolean isContainer) -
Uses of Rect in toxi.processing
Methods in toxi.processing with parameters of type Rect -
Uses of Rect in toxi.sim.grayscott
Methods in toxi.sim.grayscott with parameters of type Rect
unionRectWith(Rect)instead.