Package toxi.physics2d.constraints
Class CircularConstraint
java.lang.Object
toxi.physics2d.constraints.CircularConstraint
- All Implemented Interfaces:
ParticleConstraint2D
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCircularConstraint
(Circle circle) CircularConstraint
(Vec2D origin, float radius) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies the constraint to the passed in particle.
-
Field Details
-
circle
-
-
Constructor Details
-
CircularConstraint
-
CircularConstraint
-
-
Method Details
-
apply
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 interfaceParticleConstraint2D
- Parameters:
p
- particle
-