Interface Interpolation

All Known Implementing Classes:
KochanekBartelsInterpolation, LinearInterpolation, ReparametrisingInterpolation

public interface Interpolation
Represents an arbitrary function in ℝ → ℝ3.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    arcLength(double positionA, double positionB)
    Gets the result of ∫ab|f'(t)| dt.
    That means it calculates the arc length (in meters) between positionA and positionB.
    get1stDerivative(double position)
    Gets the result of f'(position).
    getPosition(double position)
    Gets the result of f(position).
    int
    getSegment(double position)
    Get the segment position.
    void
    setNodes(List<Node> nodes)
    Sets nodes to be used by subsequent calls to getPosition(double) and the other methods.
  • Method Details

    • setNodes

      void setNodes(List<Node> nodes)
      Sets nodes to be used by subsequent calls to getPosition(double) and the other methods.
      Parameters:
      nodes - the nodes
    • getPosition

      Vector3 getPosition(double position)
      Gets the result of f(position).
      Parameters:
      position - the position to interpolate
      Returns:
      the result
    • get1stDerivative

      Vector3 get1stDerivative(double position)
      Gets the result of f'(position).
      Parameters:
      position - the position to interpolate
      Returns:
      the result
    • arcLength

      double arcLength(double positionA, double positionB)
      Gets the result of ∫ab|f'(t)| dt.
      That means it calculates the arc length (in meters) between positionA and positionB.
      Parameters:
      positionA - lower limit
      positionB - upper limit
      Returns:
      the arc length
    • getSegment

      int getSegment(double position)
      Get the segment position.
      Parameters:
      position - the position
      Returns:
      the segment position