Package teilchen.util
Class StableSpringQuad
- java.lang.Object
-
- teilchen.util.StableSpringQuad
-
public class StableSpringQuad extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description StableSpringQuad(Physics pParticleSystem, processing.core.PVector pA, processing.core.PVector pB, processing.core.PVector pC, processing.core.PVector pD)
this utility method creates a 'stable' shape from 4 positions.StableSpringQuad(Physics pParticleSystem, Particle pA, Particle pB, Particle pC, Particle pD)
-
-
-
Constructor Detail
-
StableSpringQuad
public StableSpringQuad(Physics pParticleSystem, processing.core.PVector pA, processing.core.PVector pB, processing.core.PVector pC, processing.core.PVector pD)
this utility method creates a 'stable' shape from 4 positions. in this case a stable shape is created by connecting the four positions' edge plus two diagonals to create a stable quad. the positions should be in counter clockwise order. the positions are stored as reference which means that if you change either of the vectors afterwards it will also change the position of the connected particles.- Parameters:
pParticleSystem
- ParticleSystempA
- vertex ApB
- vertex BpC
- vertex CpD
- vertex D
-
-