Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## toxi.physics2d.constraints
Class RectConstraint

    java.lang.Object
      toxi.physics2d.constraints.RectConstraint

All Implemented Interfaces:
  ParticleConstraint2D

    public class RectConstraint

extends java.lang.Object
implements ParticleConstraint2D

Constructor Summary
`RectConstraint(toxi.geom.Rect rect)`
`RectConstraint(toxi.geom.Vec2D min, toxi.geom.Vec2D max)`

Method Summary
`void` | `apply(VerletParticle2D p)` Applies the constraint to the passed in particle.
`toxi.geom.Rect` | `getBox()`
`void` | `setBox(toxi.geom.Rect rect)`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### RectConstraint

    public RectConstraint(toxi.geom.Rect rect)

### RectConstraint

    public RectConstraint(toxi.geom.Vec2D min,
                          toxi.geom.Vec2D max)

Method Detail

### apply

    public void apply(VerletParticle2D p)

  Description copied from interface: `ParticleConstraint2D`
  Applies the constraint to the passed in particle. The method is assumed to manipulate the given instance directly.

  Specified by:
    `apply` in interface `ParticleConstraint2D`
  Parameters:
    `p` - particle

### getBox

    public toxi.geom.Rect getBox()

### setBox

    public void setBox(toxi.geom.Rect rect)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD