toxi.physics2d.constraints
Class MinConstraint

java.lang.Object
  extended by toxi.physics2d.constraints.MinConstraint
All Implemented Interfaces:
ParticleConstraint2D

public class MinConstraint
extends java.lang.Object
implements ParticleConstraint2D


Field Summary
 toxi.geom.Vec2D.Axis axis
           
 float threshold
           
 
Constructor Summary
MinConstraint(toxi.geom.Vec2D.Axis axis, float threshold)
           
 
Method Summary
 void apply(VerletParticle2D p)
          Applies the constraint to the passed in particle.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

axis

public toxi.geom.Vec2D.Axis axis

threshold

public float threshold
Constructor Detail

MinConstraint

public MinConstraint(toxi.geom.Vec2D.Axis axis,
                     float threshold)
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