Class HyperSpline


  • public class HyperSpline
    extends java.lang.Object
    Provides spline interpolation code. Currently not used but it is anticipated that we will be using it in the KeyMotion
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  HyperSpline.Cubic  
    • Constructor Summary

      Constructors 
      Constructor Description
      HyperSpline()  
      HyperSpline​(double[][] points)
      Spline in N dimensions
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double approxLength​(HyperSpline.Cubic[] curve)  
      void getPos​(double p, double[] x)  
      void getPos​(double p, float[] x)  
      double getPos​(double p, int splineNumber)  
      void getVelocity​(double p, double[] v)  
      void setup​(double[][] points)  
      • Methods inherited from class java.lang.Object

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

      • HyperSpline

        public HyperSpline​(double[][] points)
        Spline in N dimensions
        Parameters:
        points - [mPoints][dimensionality]
      • HyperSpline

        public HyperSpline()
    • Method Detail

      • setup

        public void setup​(double[][] points)
      • getVelocity

        public void getVelocity​(double p,
                                double[] v)
      • getPos

        public void getPos​(double p,
                           double[] x)
      • getPos

        public void getPos​(double p,
                           float[] x)
      • getPos

        public double getPos​(double p,
                             int splineNumber)