Class SurfaceOfRevolution

    • Constructor Detail

      • SurfaceOfRevolution

        public SurfaceOfRevolution()
        Create a surface of revolution around the y-axis based on a cosine function.
      • SurfaceOfRevolution

        public 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.
        Parameters:
        r - radius function
        y1 - beginning value along the y-axis
        y2 - ending value along the y-axis
        n - number of circles of latitude
        k - number of lines of longitude
        Throws:
        IllegalArgumentException - if n is less than 2
        IllegalArgumentException - if k is less than 2
      • SurfaceOfRevolution

        public 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.
        Parameters:
        r - radius function
        y1 - beginning value along the y-axis
        y2 - ending value along the y-axis
        theta1 - beginning value of angular parameter range
        theta2 - ending value of angular parameter range
        n - number of circles of latitude
        k - number of lines of longitude
        Throws:
        IllegalArgumentException - if n is less than 2
        IllegalArgumentException - if k is less than 2
      • SurfaceOfRevolution

        public 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.
        Parameters:
        x - first component function of the parametric curve
        y - second component function of the parametric curve
        s1 - beginning parameter value
        s2 - ending parameter value
        n - number of circles of latitude
        k - number of lines of longitude
        Throws:
        IllegalArgumentException - if n is less than 2
        IllegalArgumentException - if k is less than 2
      • SurfaceOfRevolution

        public 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.
        Parameters:
        x - first component function of the parametric curve
        y - second component function of the parametric curve
        s1 - beginning parameter value
        s2 - ending parameter value
        theta1 - beginning value of angular parameter range
        theta2 - ending value of angular parameter range
        n - number of circles of latitude
        k - number of lines of longitude
        Throws:
        IllegalArgumentException - if n is less than 2
        IllegalArgumentException - if k is less than 2