Package teilchen.constraint
Class ReflectBox
- java.lang.Object
-
- teilchen.constraint.ReflectBox
-
- All Implemented Interfaces:
IConstraint
public class ReflectBox extends java.lang.Object implements IConstraint
-
-
Field Summary
Fields Modifier and Type Field Description boolean
NEGATIVE_X
boolean
NEGATIVE_Y
boolean
NEGATIVE_Z
boolean
POSITIV_X
boolean
POSITIV_Y
boolean
POSITIV_Z
-
Constructor Summary
Constructors Constructor Description ReflectBox()
ReflectBox(processing.core.PVector pMin, processing.core.PVector pMax)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
active()
void
active(boolean pActiveState)
void
apply(java.util.ArrayList<Particle> pParticles)
void
apply(java.util.ArrayList<Particle> pParticles, java.util.ArrayList<Particle> pCollisionParticles)
void
apply(Physics pParticleSystem)
float
coefficientofrestitution()
void
coefficientofrestitution(float pCoefficientOfRestitution)
boolean
dead()
void
dead(boolean pDead)
void
epsilon(float pEpsilon)
long
ID()
processing.core.PVector
max()
processing.core.PVector
min()
-
-
-
Method Detail
-
epsilon
public void epsilon(float pEpsilon)
-
min
public processing.core.PVector min()
-
max
public processing.core.PVector max()
-
coefficientofrestitution
public void coefficientofrestitution(float pCoefficientOfRestitution)
-
coefficientofrestitution
public float coefficientofrestitution()
-
apply
public void apply(Physics pParticleSystem)
- Specified by:
apply
in interfaceIConstraint
-
active
public boolean active()
- Specified by:
active
in interfaceIConstraint
-
active
public void active(boolean pActiveState)
- Specified by:
active
in interfaceIConstraint
-
dead
public boolean dead()
- Specified by:
dead
in interfaceIConstraint
-
dead
public void dead(boolean pDead)
- Specified by:
dead
in interfaceIConstraint
-
ID
public long ID()
- Specified by:
ID
in interfaceIConstraint
-
apply
public void apply(java.util.ArrayList<Particle> pParticles)
-
-