toxi.physics2d.constraints
Class AngularConstraint
java.lang.Object
toxi.physics2d.constraints.AngularConstraint
- All Implemented Interfaces:
- ParticleConstraint2D
public class AngularConstraint
- extends java.lang.Object
- implements ParticleConstraint2D
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rootPos
public toxi.geom.Vec2D rootPos
theta
public float theta
AngularConstraint
public AngularConstraint(float theta)
AngularConstraint
public AngularConstraint(int theta)
AngularConstraint
public AngularConstraint(toxi.geom.Vec2D p,
int theta)
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