za.co.luma.math.function
Class Falloff

java.lang.Object
  extended by za.co.luma.math.function.RealFunction2DDouble
      extended by za.co.luma.math.function.Falloff

public class Falloff
extends RealFunction2DDouble

A function that represents a cone - a linear falloff from a given point, but clamped so that it cannot exceed a certain value.

Author:
Herman Tulleken

Constructor Summary
Falloff(double x, double y, double inputMax, double outputMin, double outputMax)
           
 
Method Summary
 double getDouble(double x, double y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Falloff

public Falloff(double x,
               double y,
               double inputMax,
               double outputMin,
               double outputMax)
Method Detail

getDouble

public double getDouble(double x,
                        double y)
Specified by:
getDouble in class RealFunction2DDouble