Class EllipseParticle

All Implemented Interfaces:
ITimeToLive

public class EllipseParticle extends ShapeParticle
Represents a particle in the shape of an ellipse. This class extends the ShapeParticle to provide specific behavior for elliptical particles.
  • Constructor Details

    • EllipseParticle

      public EllipseParticle(float width, float height)
      Initializes a new instance of the EllipseParticle class with the specified dimensions.
      Parameters:
      width - The width of the ellipse.
      height - The height of the ellipse.
  • Method Details

    • getShape

      protected Shape getShape(Point2D emitterOrigin)
      Creates and returns the shape of the ellipse particle, transformed based on the emitter's origin and rotation.
      Specified by:
      getShape in class ShapeParticle
      Parameters:
      emitterOrigin - The origin point of the emitter.
      Returns:
      A Shape representing the transformed ellipse.