Interface PolyLine.TransitionFunction

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

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)