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
Interface ParticleConstraint2D

All Known Implementing Classes:
  AngularConstraint, AxisConstraint, CircularConstraint, MaxConstraint, MinConstraint, RectConstraint

    public interface ParticleConstraint2D

Defines an interface used to constrain VerletParticles based on a custom criteria (e.g. only allowed to move along an axis or shape etc.). The constraints will be applied directly after each spring update.

Method Summary
`void` | `apply(VerletParticle2D p)` Applies the constraint to the passed in particle.

Method Detail

### apply

    void apply(VerletParticle2D p)

  Applies the constraint to the passed in particle. The method is assumed to manipulate the given instance directly.

  Parameters:
    `p` - particle

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