Package hm.zelha.particlesfx.shapers
Class ParticleSphereCSA
java.lang.Object
hm.zelha.particlesfx.shapers.parents.RotationHandler
hm.zelha.particlesfx.shapers.parents.ParticleShaper
hm.zelha.particlesfx.shapers.ParticleCircle
hm.zelha.particlesfx.shapers.ParticleSphere
hm.zelha.particlesfx.shapers.ParticleSphereCSA
- All Implemented Interfaces:
Shape
This class uses surface area and circumference to position particles, as opposed to
This class's sphere looks worse, but is much less chaotic and easier to color with secondary particles.
ParticleSphere which uses
the Sunflower Seed Arrangement
This class's sphere looks worse, but is much less chaotic and easier to color with secondary particles.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected booleanprotected doubleFields inherited from class hm.zelha.particlesfx.shapers.ParticleSphere
yRadiusFields inherited from class hm.zelha.particlesfx.shapers.ParticleCircle
limit, limitInverse, xRadius, zRadiusFields inherited from class hm.zelha.particlesfx.shapers.parents.ParticleShaper
animator, async, currentCount, delay, locationHelper, mechanics, overallCount, particle, particleFrequency, particlesPerDisplay, players, secondaryParticles, vectorHelperFields inherited from class hm.zelha.particlesfx.shapers.parents.RotationHandler
centroid, compounds, lastRotatedAround, locations, originalCentroid, origins, rhLocationHelper, rhRotHelper, rhVectorHelper, rot, rot2, rotHelper -
Constructor Summary
ConstructorsConstructorDescriptionParticleSphereCSA(Particle particle, LocationSafe center, double radius) ParticleSphereCSA(Particle particle, LocationSafe center, double xRadius, double yRadius, double zRadius, double pitch, double yaw, double roll, int circleFrequency, int particleFrequency) Note: if circleFrequency is too high it can cause the sphere to look weird, if that's why you're looking at this then I'd suggest lowering it.ParticleSphereCSA(Particle particle, LocationSafe center, double radius, double pitch, double yaw, double roll, int circleFrequency, int particleFrequency) Note: if circleFrequency is too high it can cause the sphere to look weird, if that's why you're looking at this then I'd suggest lowering it.ParticleSphereCSA(Particle particle, LocationSafe center, double xRadius, double yRadius, double zRadius, int particleFrequency) ParticleSphereCSA(Particle particle, LocationSafe center, double xRadius, double yRadius, double zRadius, int circleFrequency, int particleFrequency) Note: if circleFrequency is too high it can cause the sphere to look weird, if that's why you're looking at this then I'd suggest lowering it.ParticleSphereCSA(Particle particle, LocationSafe center, double radius, int particleFrequency) ParticleSphereCSA(Particle particle, LocationSafe center, double radius, int circleFrequency, int particleFrequency) Note: if circleFrequency is too high it can cause the sphere to look weird, if that's why you're looking at this then I'd suggest lowering it. -
Method Summary
Modifier and TypeMethodDescriptionclone()protected ParticleShapervoiddisplay()intprotected voidvoidsetCircleFrequency(int circleFrequency) setLimit(double limit) voidsetXRadius(double xRadius) voidsetZRadius(double zRadius) Methods inherited from class hm.zelha.particlesfx.shapers.ParticleSphere
getYRadius, scale, setLimitInverse, setYRadiusMethods inherited from class hm.zelha.particlesfx.shapers.ParticleCircle
getCenter, getLimit, getXRadius, getZRadius, isLimitInverse, setCenterMethods inherited from class hm.zelha.particlesfx.shapers.parents.ParticleShaper
addMechanic, addParticle, addPlayer, addPlayer, applyMechanics, getCurrentParticle, getDelay, getMechanicAmount, getParticle, getParticleFrequency, getParticlesPerDisplay, getPlayerAmount, getPlayers, getSecondaryParticle, getSecondaryParticleAmount, hasPlayer, isAsync, isRunning, removeMechanic, removeParticle, removePlayer, removePlayer, setAsync, setDelay, setDisplayPosition, setParticle, setParticleFrequency, setParticlesPerDisplay, setWorld, start, stopMethods inherited from class hm.zelha.particlesfx.shapers.parents.RotationHandler
addCompound, calculateCentroid, face, faceAroundLocation, getAroundAxisPitch, getAroundAxisRoll, getAroundAxisYaw, getAroundPitch, getAroundRoll, getAroundRotationOrder, getAroundYaw, getAxisPitch, getAxisRoll, getAxisYaw, getClonedCenter, getDirection, getLocationAmount, getLocations, getLocationsList, getPitch, getRoll, getRotationOrder, getTotalDistance, getWorld, getYaw, move, move, move, recalculateIfNeeded, removeCompound, rotate, rotateAroundLocation, scale, setAroundAxisPitch, setAroundAxisRoll, setAroundAxisRotation, setAroundAxisYaw, setAroundPitch, setAroundRoll, setAroundRotation, setAroundRotationOrder, setAroundYaw, setAxisPitch, setAxisRoll, setAxisRotation, setAxisYaw, setPitch, setRoll, setRotation, setRotationOrder, setYawMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hm.zelha.particlesfx.shapers.parents.Shape
face, faceAroundLocation, getAroundAxisPitch, getAroundAxisRoll, getAroundAxisYaw, getAroundPitch, getAroundRoll, getAroundRotationOrder, getAroundYaw, getAxisPitch, getAxisRoll, getAxisYaw, getClonedCenter, getLocationAmount, getLocations, getPitch, getRoll, getRotationOrder, getTotalDistance, getWorld, getYaw, move, move, move, rotate, rotateAroundLocation, scale, setAroundAxisPitch, setAroundAxisRoll, setAroundAxisRotation, setAroundAxisYaw, setAroundPitch, setAroundRoll, setAroundRotation, setAroundRotationOrder, setAroundYaw, setAxisPitch, setAxisRoll, setAxisRotation, setAxisYaw, setPitch, setRoll, setRotation, setRotationOrder, setYaw
-
Field Details
-
cirTracker
-
circleFrequency
protected int circleFrequency -
surfaceArea
protected double surfaceArea -
recalculate
protected boolean recalculate
-
-
Constructor Details
-
ParticleSphereCSA
public ParticleSphereCSA(Particle particle, LocationSafe center, double xRadius, double yRadius, double zRadius, double pitch, double yaw, double roll, int circleFrequency, int particleFrequency) Note: if circleFrequency is too high it can cause the sphere to look weird, if that's why you're looking at this then I'd suggest lowering it.- See Also:
-
ParticleSphereCSA
public ParticleSphereCSA(Particle particle, LocationSafe center, double radius, double pitch, double yaw, double roll, int circleFrequency, int particleFrequency) Note: if circleFrequency is too high it can cause the sphere to look weird, if that's why you're looking at this then I'd suggest lowering it.- See Also:
-
ParticleSphereCSA
public ParticleSphereCSA(Particle particle, LocationSafe center, double xRadius, double yRadius, double zRadius, int circleFrequency, int particleFrequency) Note: if circleFrequency is too high it can cause the sphere to look weird, if that's why you're looking at this then I'd suggest lowering it.- See Also:
-
ParticleSphereCSA
public ParticleSphereCSA(Particle particle, LocationSafe center, double radius, int circleFrequency, int particleFrequency) Note: if circleFrequency is too high it can cause the sphere to look weird, if that's why you're looking at this then I'd suggest lowering it.- See Also:
-
ParticleSphereCSA
public ParticleSphereCSA(Particle particle, LocationSafe center, double xRadius, double yRadius, double zRadius, int particleFrequency) - See Also:
-
ParticleSphereCSA
public ParticleSphereCSA(Particle particle, LocationSafe center, double radius, int particleFrequency) - See Also:
-
ParticleSphereCSA
- See Also:
-
-
Method Details
-
display
public void display()- Specified by:
displayin interfaceShape- Overrides:
displayin classParticleSphere
-
clone
- Specified by:
clonein interfaceShape- Overrides:
clonein classParticleSphere
-
cloneConstructor
- Overrides:
cloneConstructorin classParticleSphere
-
recalcCircumferenceAndArea
protected void recalcCircumferenceAndArea() -
setXRadius
public void setXRadius(double xRadius) - Overrides:
setXRadiusin classParticleCircle
-
setZRadius
public void setZRadius(double zRadius) - Overrides:
setZRadiusin classParticleCircle
-
setLimit
- Overrides:
setLimitin classParticleSphere- Parameters:
limit- percentage of the shape that should generate, such that 0 would be the entire shape and 50 would be half the shape.
-
setCircleFrequency
public void setCircleFrequency(int circleFrequency) - Parameters:
circleFrequency- amount of circles in the sphere
-
getCircleFrequency
public int getCircleFrequency()- Returns:
- amount of circles in the sphere
-