Package toxi.physics2d.constraints
Class PolygonConstraint
java.lang.Object
toxi.physics2d.constraints.PolygonConstraint
- All Implemented Interfaces:
ParticleConstraint2D
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies the constraint to the passed in particle.boolean
void
setIsContainer
(boolean isContainer) void
setPolygon
(Polygon2D poly)
-
Constructor Details
-
PolygonConstraint
-
-
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
-
getPolygon
-
isContainer
public boolean isContainer() -
setIsContainer
public void setIsContainer(boolean isContainer) -
setPolygon
-