Package org.djutils.draw.line
Interface PolyLine.TransitionFunction
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
function(double fraction)
Function that returns some value for inputs between 0.0 and 1.0.
-
-
-
Method Detail
-
function
double function(double fraction)
Function that returns some value for inputs between 0.0 and 1.0. For a smooth transition, this function should return 0.0 for input 0.0 and 1.0 for input 1.0 and be continuous and smooth.- Parameters:
fraction
- double; the input for the function- Returns:
- double; a ratio between 0.0 and 1.0 (values outside this domain are not an error, but will cause the transition line to go outside the range of the reference line and the other line)
-
-