Class dSinTransform

java.lang.Object
de.slikey.effectlib.math.dSinTransform
All Implemented Interfaces:
Transform

public class dSinTransform extends Object implements Transform
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    get(double input)
    This returns the derivative, or velocity, of a sin equation at a specific step.
    void
    load(org.bukkit.configuration.ConfigurationSection parameters)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • dSinTransform

      public dSinTransform()
  • Method Details

    • load

      public void load(org.bukkit.configuration.ConfigurationSection parameters)
      Specified by:
      load in interface Transform
    • get

      public double get(double input)
      This returns the derivative, or velocity, of a sin equation at a specific step. For a sin function: f(x) = a*sin(b(x+c)) + d f'(x) = a*b*cos(b(x+c))
      Specified by:
      get in interface Transform
      Parameters:
      input - a specific step
      Returns:
      the derivative, or velocity, of a sin equation