Class ReflectBox

  • All Implemented Interfaces:
    IConstraint

    public class ReflectBox
    extends java.lang.Object
    implements IConstraint
    • Field Detail

      • NEGATIVE_X

        public boolean NEGATIVE_X
      • NEGATIVE_Y

        public boolean NEGATIVE_Y
      • NEGATIVE_Z

        public boolean NEGATIVE_Z
      • POSITIV_X

        public boolean POSITIV_X
      • POSITIV_Y

        public boolean POSITIV_Y
      • POSITIV_Z

        public boolean POSITIV_Z
    • Constructor Detail

      • ReflectBox

        public ReflectBox​(processing.core.PVector pMin,
                          processing.core.PVector pMax)
      • ReflectBox

        public ReflectBox()
    • 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()
      • active

        public void active​(boolean pActiveState)
        Specified by:
        active in interface IConstraint
      • dead

        public boolean dead()
        Specified by:
        dead in interface IConstraint
      • dead

        public void dead​(boolean pDead)
        Specified by:
        dead in interface IConstraint
      • ID

        public long ID()
        Specified by:
        ID in interface IConstraint
      • apply

        public void apply​(java.util.ArrayList<Particle> pParticles)
      • apply

        public void apply​(java.util.ArrayList<Particle> pParticles,
                          java.util.ArrayList<Particle> pCollisionParticles)