public class ParametricCurve extends Model
ParametricSurface
lineSegmentList, vertexList, visible
Constructor and Description |
---|
ParametricCurve()
Create a trefoil knot as a parametric curve in space.
|
ParametricCurve(java.util.function.DoubleFunction<java.lang.Double> x,
java.util.function.DoubleFunction<java.lang.Double> y,
double t1,
double t2,
int n)
Create a parametric curve in the xy-plane,
|
ParametricCurve(java.util.function.DoubleFunction<java.lang.Double> x,
java.util.function.DoubleFunction<java.lang.Double> y,
java.util.function.DoubleFunction<java.lang.Double> z,
double t1,
double t2,
int n)
Create a parametric curve in space,
|
addLineSegment, addLineSegment, addVertex, setColor, setColorRandom, setRandomColors, setRandomLineSegmentColors, toString
public ParametricCurve()
public ParametricCurve(java.util.function.DoubleFunction<java.lang.Double> x, java.util.function.DoubleFunction<java.lang.Double> y, double t1, double t2, int n)
x = x(t)
y = y(t)
with the parameter t
having the given parameter
range and the given number of line segments.x
- component function in the x-directiony
- component function in the y-directiont1
- beginning value of parameter ranget2
- ending value of parameter rangen
- number of line segments in the curvepublic ParametricCurve(java.util.function.DoubleFunction<java.lang.Double> x, java.util.function.DoubleFunction<java.lang.Double> y, java.util.function.DoubleFunction<java.lang.Double> z, double t1, double t2, int n)
x = x(t)
y = y(t)
z = z(t)
with the parameter t
having the given parameter
range and the given number of line segments.x
- component function in the x-directiony
- component function in the y-directionz
- component function in the z-directiont1
- beginning value of parameter ranget2
- ending value of parameter rangen
- number of line segments in the curve