public class ParametricSurface extends Model
ParametricCurve
lineSegmentList, vertexList, visible
Constructor and Description |
---|
ParametricSurface()
Create a graph of the function with the following formula,
|
ParametricSurface(java.util.function.DoubleBinaryOperator x,
java.util.function.DoubleBinaryOperator y,
java.util.function.DoubleBinaryOperator z,
double s1,
double s2,
double t1,
double t2,
int n,
int k)
Create a parametric surface in space,
|
ParametricSurface(java.util.function.DoubleBinaryOperator f,
double x1,
double x2,
double z1,
double z2,
int n,
int k)
Create a graph of a function of two variables
y = f(x, z) as a parametric surface with
the given parameter ranges in the x and
z directions. |
addLineSegment, addLineSegment, addVertex, setColor, setColorRandom, setRandomColors, setRandomLineSegmentColors, toString
public ParametricSurface()
f(x,z) = sin(PI*x) * sin(PI*z)
as a parametric surface.public ParametricSurface(java.util.function.DoubleBinaryOperator x, java.util.function.DoubleBinaryOperator y, java.util.function.DoubleBinaryOperator z, double s1, double s2, double t1, double t2, int n, int k)
x = x(s,t)
y = y(s,t)
z = z(s,t)
with the parameters s
and t
having
the given parameter ranges and the given number of
mesh lines in each parametric direction.x
- component function in the x-directiony
- component function in the y-directionz
- component function in the z-directions1
- beginning value of first parameter ranges2
- ending value of first parameter ranget1
- beginning value of second parameter ranget2
- ending value of second parameter rangen
- number of mesh lines in first rangek
- number of mesh lines in second rangepublic ParametricSurface(java.util.function.DoubleBinaryOperator f, double x1, double x2, double z1, double z2, int n, int k)
y = f(x, z)
as a parametric surface with
the given parameter ranges in the x
and
z
directions.f
- function of x and zx1
- beginning value of x-parameter rangex2
- ending value of x-parameter rangez1
- beginning value of y-parameter rangez2
- ending value of z-parameter rangen
- number of mesh lines in x-rangek
- number of mesh lines in y-range