Package 

Class MathExtensions

    • Method Summary

      Modifier and Type Method Description
      final static Double interpolate(Double startValue, Double endValue, Double fraction, Interpolator interpolator) 得到指定范围的双精度浮点数的插值。
      final static Point2D interpolate(Point2D startValue, Point2D endValue, Double fraction, Interpolator interpolator) 得到指定范围的二维点的插值。
      final static Point3D interpolate(Point3D startValue, Point3D endValue, Double fraction, Interpolator interpolator) 得到指定范围的三维点的插值。
      final static Point2D bezier(Point2D p1, Point2D p2, Point2D p3, Double t) 得到指定参数的贝塞尔曲线。
      final static Point2D bezier(Point2D p1, Point2D p2, Point2D p3, Point2D p4, Double t) 得到指定参数的贝塞尔曲线。
      • Methods inherited from class java.lang.Object

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

      • interpolate

         final static Double interpolate(Double startValue, Double endValue, Double fraction, Interpolator interpolator)

        得到指定范围的双精度浮点数的插值。

      • interpolate

         final static Point2D interpolate(Point2D startValue, Point2D endValue, Double fraction, Interpolator interpolator)

        得到指定范围的二维点的插值。

      • interpolate

         final static Point3D interpolate(Point3D startValue, Point3D endValue, Double fraction, Interpolator interpolator)

        得到指定范围的三维点的插值。

      • bezier

         final static Point2D bezier(Point2D p1, Point2D p2, Point2D p3, Double t)

        得到指定参数的贝塞尔曲线。

      • bezier

         final static Point2D bezier(Point2D p1, Point2D p2, Point2D p3, Point2D p4, Double t)

        得到指定参数的贝塞尔曲线。