Class ParametricSurface

    • Constructor Detail

      • ParametricSurface

        public ParametricSurface()
        Create a graph of the function with the following formula,
        
                  f(x,z) = sin(PI*x) * sin(PI*z)
              
        as a parametric surface.
      • ParametricSurface

        public ParametricSurface​(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.
        Parameters:
        f - function of x and z
        x1 - beginning value of x-parameter range
        x2 - ending value of x-parameter range
        z1 - beginning value of y-parameter range
        z2 - ending value of z-parameter range
        n - number of mesh lines in x-range
        k - number of mesh lines in y-range
        Throws:
        IllegalArgumentException - if n is less than 2
        IllegalArgumentException - if k is less than 2
      • ParametricSurface

        public ParametricSurface​(DoubleBinaryOperator x,
                                 DoubleBinaryOperator y,
                                 DoubleBinaryOperator z,
                                 double s1,
                                 double s2,
                                 double t1,
                                 double t2,
                                 int n,
                                 int k)
        Create a parametric surface in space,
        
                 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.
        Parameters:
        x - component function in the x-direction
        y - component function in the y-direction
        z - component function in the z-direction
        s1 - beginning value of first parameter range
        s2 - ending value of first parameter range
        t1 - beginning value of second parameter range
        t2 - ending value of second parameter range
        n - number of mesh lines in first range
        k - number of mesh lines in second range
        Throws:
        IllegalArgumentException - if n is less than 2
        IllegalArgumentException - if k is less than 2
      • ParametricSurface

        public ParametricSurface​(DoubleBinaryOperator x,
                                 DoubleBinaryOperator y,
                                 DoubleBinaryOperator z,
                                 double s1,
                                 double s2,
                                 double t1,
                                 double t2,
                                 int n,
                                 int k,
                                 String name)
        Create a parametric surface in space,
        
                 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.
        Parameters:
        x - component function in the x-direction
        y - component function in the y-direction
        z - component function in the z-direction
        s1 - beginning value of first parameter range
        s2 - ending value of first parameter range
        t1 - beginning value of second parameter range
        t2 - ending value of second parameter range
        n - number of mesh lines in first range
        k - number of mesh lines in second range
        name - String name for this surface
        Throws:
        IllegalArgumentException - if n is less than 2
        IllegalArgumentException - if k is less than 2
    • Method Detail

      • remake

        public ParametricSurface remake​(int n,
                                        int k)
        Description copied from interface: MeshMaker
        Build an instance of the Model with new values for the number of lines of latitude and longitude while keeping all the other model parameters the same.
        Specified by:
        remake in interface MeshMaker
        Parameters:
        n - number of lines of latitude for the returned Model
        k - number of lines of longitude for the returned Model
        Returns:
        a new instance of the Model with the updated parameters