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.physics.constraints
Class CylinderConstraint

    java.lang.Object
      toxi.physics.constraints.CylinderConstraint

All Implemented Interfaces:
  ParticleConstraint

    public class CylinderConstraint

extends java.lang.Object
implements ParticleConstraint

Constructor Summary
`CylinderConstraint(toxi.geom.AxisAlignedCylinder cylinder)`

Method Summary
`void` | `apply(VerletParticle p)` Applies the constraint to the passed in particle.
`toxi.geom.AxisAlignedCylinder` | `getCylinder()`
`void` | `setCylinder(toxi.geom.AxisAlignedCylinder cylinder)`

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

Constructor Detail

### CylinderConstraint

    public CylinderConstraint(toxi.geom.AxisAlignedCylinder cylinder)

Method Detail

### apply

    public void apply(VerletParticle p)

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

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

### getCylinder

    public toxi.geom.AxisAlignedCylinder getCylinder()

  Returns:
    the cylinder

### setCylinder

    public void setCylinder(toxi.geom.AxisAlignedCylinder cylinder)

  Parameters:
    `cylinder` - the cylinder to set

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