Package com.jackmeng.stl
Class stl_Bezier
java.lang.Object
com.jackmeng.stl.stl_Bezier
public class stl_Bezier
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.Double>
controlPoints
private int
degree
-
Constructor Summary
Constructors Constructor Description stl_Bezier(java.util.List<java.lang.Double> controlPoints, int degree)
-
Method Summary
Modifier and Type Method Description double
interpolate(double t)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
controlPoints
private final java.util.List<java.lang.Double> controlPoints -
degree
private final int degree
-
-
Constructor Details
-
stl_Bezier
public stl_Bezier(java.util.List<java.lang.Double> controlPoints, int degree)
-
-
Method Details
-
interpolate
public double interpolate(double t)
-