Class EquationEffect

java.lang.Object
de.slikey.effectlib.Effect
de.slikey.effectlib.effect.EquationEffect
All Implemented Interfaces:
Runnable

public class EquationEffect extends Effect
  • Field Details

    • xEquation

      public String xEquation
      Equations defining the X,Y,Z coordinates over iteration t These equations can make use of most common math functions, including randomized numbers. Some examples: 4*sin(t) cos(t * rand(-4,5) + 32 tan(t)
    • yEquation

      public String yEquation
    • zEquation

      public String zEquation
    • variable

      public String variable
      The variable name used in equations to represent major ticks
    • particles

      public int particles
      How many steps to take per iteration
    • x2Equation

      public String x2Equation
      A set of equations that, if set, will be performed in a sub-iteration for each major iteration.
    • y2Equation

      public String y2Equation
    • z2Equation

      public String z2Equation
    • variable2

      public String variable2
      The variable name used in sub-equations to represent minor ticks
    • particles2

      public int particles2
      How many steps to take per sub-iteration
    • orient

      public boolean orient
      Whether or not to orient the effect in the direction of the source Location If this is set to true, the X axis will represent "forward".
    • orientPitch

      public boolean orientPitch
      Similar to orient, however this is specific to pitch.
    • maxSteps

      public int maxSteps
      These is the limit for the steps until it starts over.
    • cycleMiniStep

      public boolean cycleMiniStep
      If this is true, after cycling the inner equation, it'll be set to 0. Set this to false if you want the miniStep to be saved between major steps.
  • Constructor Details

    • EquationEffect

      public EquationEffect(EffectManager effectManager)
  • Method Details

    • reset

      public void reset()
      Description copied from class: Effect
      Effects should override this if they want to be reusable, this is called prior to starting so state can be reset.
      Overrides:
      reset in class Effect
    • onRun

      public void onRun()
      Specified by:
      onRun in class Effect