j3d.examples.particles.generationshapes
Class LineGenerationShape

java.lang.Object
  extended by j3d.examples.particles.generationshapes.GenerationShape
      extended by j3d.examples.particles.generationshapes.LineGenerationShape
All Implemented Interfaces:
IGenerationShape

public class LineGenerationShape
extends GenerationShape
implements IGenerationShape

Emits particles along a line. The line is along the x-axis and particles are emitted in the direction of positive y-axis. Particles are spread in the YZ plane based on the spread angle.


Constructor Summary
LineGenerationShape(double spreadAngle, float aLength)
           
LineGenerationShape(float spreadAngle, float aLength)
           
 
Method Summary
 void initializeParticlePosition(Particle particle)
           
 void initializeParticleVelocity(Particle particle)
           
 
Methods inherited from class j3d.examples.particles.generationshapes.GenerationShape
getEmitter, setEmitter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface j3d.examples.particles.generationshapes.IGenerationShape
setEmitter
 

Constructor Detail

LineGenerationShape

public LineGenerationShape(float spreadAngle,
                           float aLength)

LineGenerationShape

public LineGenerationShape(double spreadAngle,
                           float aLength)
Method Detail

initializeParticlePosition

public void initializeParticlePosition(Particle particle)
Specified by:
initializeParticlePosition in interface IGenerationShape

initializeParticleVelocity

public void initializeParticleVelocity(Particle particle)
Specified by:
initializeParticleVelocity in interface IGenerationShape