Class ParametricCurve

    • Constructor Detail

      • ParametricCurve

        public ParametricCurve​(DoubleFunction<Double> x,
                               DoubleFunction<Double> y,
                               double t1,
                               double t2,
                               int n)
        Create a parametric curve in the xy-plane,
        
                 x = x(t)
                 y = y(t)
              
        with the parameter t having the given parameter range and the given number of line segments.
        Parameters:
        x - component function in the x-direction
        y - component function in the y-direction
        t1 - beginning value of parameter range
        t2 - ending value of parameter range
        n - number of line segments in the curve
        Throws:
        IllegalArgumentException - if n is less than 1
      • ParametricCurve

        public ParametricCurve​(DoubleFunction<Double> x,
                               DoubleFunction<Double> y,
                               DoubleFunction<Double> z,
                               double t1,
                               double t2,
                               int n)
        Create a parametric curve in space,
        
                 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.
        Parameters:
        x - component function in the x-direction
        y - component function in the y-direction
        z - component function in the z-direction
        t1 - beginning value of parameter range
        t2 - ending value of parameter range
        n - number of line segments in the curve
        Throws:
        IllegalArgumentException - if n is less than 1
    • Method Detail

      • remake

        public ParametricCurve 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