Package heronarts.lx.parameter
Class BoundedParameter.Range
java.lang.Object
heronarts.lx.parameter.BoundedParameter.Range
- Enclosing class:
- BoundedParameter
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
constrain
(double value) double
getNormalized
(double value) double
getNormalized
(double value, double exponent) double
getNormalized
(double value, double exponent, BoundedParameter.NormalizationCurve curve) double
normalizedToValue
(double normalized) double
normalizedToValue
(double normalized, double exponent) double
normalizedToValue
(double normalized, double exponent, BoundedParameter.NormalizationCurve curve)
-
Field Details
-
v0
public final double v0 -
v1
public final double v1 -
min
public final double min -
max
public final double max -
vRange
public final double vRange -
range
public final double range
-
-
Constructor Details
-
Range
public Range(double v0, double v1)
-
-
Method Details
-
constrain
public double constrain(double value) -
getNormalized
public double getNormalized(double value) -
getNormalized
public double getNormalized(double value, double exponent) -
getNormalized
public double getNormalized(double value, double exponent, BoundedParameter.NormalizationCurve curve) -
normalizedToValue
public double normalizedToValue(double normalized) -
normalizedToValue
public double normalizedToValue(double normalized, double exponent) -
normalizedToValue
public double normalizedToValue(double normalized, double exponent, BoundedParameter.NormalizationCurve curve)
-