Package toxi.physics3d.constraints
Class CylinderConstraint
java.lang.Object
toxi.physics3d.constraints.CylinderConstraint
- All Implemented Interfaces:
ParticleConstraint3D
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies the constraint to the passed in particle.void
setCylinder
(AxisAlignedCylinder cylinder)
-
Constructor Details
-
CylinderConstraint
-
-
Method Details
-
apply
Description copied from interface:ParticleConstraint3D
Applies the constraint to the passed in particle. The method is assumed to manipulate the given instance directly.- Specified by:
apply
in interfaceParticleConstraint3D
- Parameters:
p
- particle
-
getCylinder
- Returns:
- the cylinder
-
setCylinder
- Parameters:
cylinder
- the cylinder to set
-