Class PointShape

java.lang.Object
me.deecaad.core.utils.shape.PointShape
All Implemented Interfaces:
Shape

public final class PointShape extends Object implements Shape
A single point at the emitter origin. direction is zero so the emitter falls back to its own direction provider.
  • Constructor Details

    • PointShape

      public PointShape()
  • Method Details

    • getPoint

      @NotNull public @NotNull ShapePoint getPoint(double t)
      Description copied from interface: Shape
      Returns one sample from this shape. For random shapes (sphere, cone, cube) t is ignored; for deterministic shapes (point, line, circle) t parameterizes the sample.
      Specified by:
      getPoint in interface Shape
      Parameters:
      t - Normalized parameter in [0, 1).
      Returns:
      The non-null shape point.