Class FXLines

java.lang.Object
org.jhotdraw8.geom.FXLines

public class FXLines extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    eval(double[] a, int offset, double t)
     
    static javafx.geometry.Point2D
    lerp(double[] a, int offset, double t)
     
    static javafx.geometry.Point2D
    lerp(double x0, double y0, double x1, double y1, double t)
     
    static javafx.geometry.Point2D
    lerp(javafx.geometry.Point2D start, javafx.geometry.Point2D end, double t)
    Computes the linear interpolation/extrapolation between two points.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FXLines

      public FXLines()
  • Method Details

    • lerp

      public static javafx.geometry.Point2D lerp(double x0, double y0, double x1, double y1, double t)
    • lerp

      public static javafx.geometry.Point2D lerp(double[] a, int offset, double t)
    • eval

      public static PointAndDerivative eval(double[] a, int offset, double t)
    • lerp

      public static javafx.geometry.Point2D lerp(javafx.geometry.Point2D start, javafx.geometry.Point2D end, double t)
      Computes the linear interpolation/extrapolation between two points.
      Parameters:
      start - point a
      end - point b
      t - a value between [0, 1] defines the interpolation between a and b. Values outside this range yield an extrapolation.
      Returns:
      the interpolated or extrapolated value