Interface PolyLine.TransitionFunction

Enclosing interface:
PolyLine<L extends PolyLine<L,P,R,LS>,P extends Point<P>,R extends Ray<R,P>,LS extends LineSegment<P,R>>

public static interface PolyLine.TransitionFunction
Interface for transition function.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    function(double fraction)
    Function that returns some value for inputs between 0.0 and 1.0.
  • Method Details

    • 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)