Documentation of 'jsci.maths.chaos.KochCurve' Java class
KochCurve
jsci.maths.chaos

Class KochCurve



  • public abstract class KochCurve
    extends java.lang.Object
    The KochCurve class provides an object that encapsulates the Koch curve.
    • Constructor Summary

      Constructors 
      Constructor and Description
      KochCurve() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double hausdorffDimension() 
      void recurse(double startX, double startY, double endX, double endY, int n)
      The recursive algorithm for the Koch curve.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KochCurve

        public KochCurve()
    • Method Detail

      • hausdorffDimension

        public double hausdorffDimension()
      • recurse

        public void recurse(double startX,
                            double startY,
                            double endX,
                            double endY,
                            int n)
        The recursive algorithm for the Koch curve.
        Parameters:
        startX - the x-coordinate of the start of the line.
        startY - the x-coordinate of the start of the line.
        endX - the x-coordinate of the end of the line.
        endY - the x-coordinate of the end of the line.
        n - the number of recursions.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.