public class SurfaceOfRevolution extends ParametricSurface
See https://en.wikipedia.org/wiki/Surface_of_revolution#Rotating_a_function
ParametricSurface
hidden, lineSegmentList
Constructor and Description |
---|
SurfaceOfRevolution()
Create a surface of revolution around the y-axis
based on a cosine function.
|
SurfaceOfRevolution(DoubleFunction<Double> r,
double y1,
double y2,
double theta1,
double theta2,
int n,
int k)
Create a surface of revolution around the y-axis with
the given radial function,
r = r(y) , the given
angular range for the sector of revolution, the given
parameter range along the y-axis, and the given number
of circles of latitude. |
SurfaceOfRevolution(DoubleFunction<Double> r,
double y1,
double y2,
int n,
int k)
Create a surface of revolution around the y-axis
with the given radial function,
r = r(y) ,
the given parameter range along the y-axis, and
the given number of circles of latitude. |
SurfaceOfRevolution(DoubleFunction<Double> x,
DoubleFunction<Double> y,
double s1,
double s2,
double theta1,
double theta2,
int n,
int k)
Create a surface of revolution around the y-axis
of the given radial parametric curve and the given
angular range for the sector of revolution.
|
SurfaceOfRevolution(DoubleFunction<Double> x,
DoubleFunction<Double> y,
double s1,
double s2,
int n,
int k)
Create a surface of revolution around the y-axis
of the given radial parametric curve.
|
public SurfaceOfRevolution()
public SurfaceOfRevolution(DoubleFunction<Double> r, double y1, double y2, double theta1, double theta2, int n, int k)
r = r(y)
, the given
angular range for the sector of revolution, the given
parameter range along the y-axis, and the given number
of circles of latitude.r
- radius functiony1
- beginning value along the y-axisy2
- ending value along the y-axistheta1
- beginning value of angular parameter rangetheta2
- ending value of angular parameter rangen
- number of circles of latitudek
- number of lines of longitudepublic SurfaceOfRevolution(DoubleFunction<Double> r, double y1, double y2, int n, int k)
r = r(y)
,
the given parameter range along the y-axis, and
the given number of circles of latitude.r
- radius functiony1
- beginning value along the y-axisy2
- ending value along the y-axisn
- number of circles of latitudek
- number of lines of longitudepublic SurfaceOfRevolution(DoubleFunction<Double> x, DoubleFunction<Double> y, double s1, double s2, double theta1, double theta2, int n, int k)
x
- first component function of the parametric curvey
- second component function of the parametric curves1
- beginning parameter values2
- ending parameter valuetheta1
- beginning value of angular parameter rangetheta2
- ending value of angular parameter rangen
- number of circles of latitudek
- number of lines of longitudepublic SurfaceOfRevolution(DoubleFunction<Double> x, DoubleFunction<Double> y, double s1, double s2, int n, int k)
x
- first component function of the parametric curvey
- second component function of the parametric curves1
- beginning parameter values2
- ending parameter valuen
- number of circles of latitudek
- number of lines of longitude