Class SierpinskiCurveTurtle

    • Constructor Detail

      • SierpinskiCurveTurtle

        public SierpinskiCurveTurtle​(Model model,
                                     int n,
                                     double length)
        Parameters:
        model - a reference to the Model that this Turtle is builing
        n - number of levels for the Sierpinski curve
        length - side length
      • SierpinskiCurveTurtle

        public SierpinskiCurveTurtle​(Model model,
                                     int n,
                                     double length,
                                     double xPos,
                                     double yPos)
        Parameters:
        model - a reference to the Model that this Turtle is builing
        n - number of levels for the Sierpinski curve
        length - side length
        xPos - the intial x-coordinate for this Turtle
        yPos - the intial y-coordinate for this Turtle
      • SierpinskiCurveTurtle

        public SierpinskiCurveTurtle​(Model model,
                                     int n,
                                     double length,
                                     double xPos,
                                     double yPos,
                                     double z)
        Parameters:
        model - a reference to the Model that this Turtle is builing
        n - number of levels for the Sierpinski curve
        length - side length
        xPos - the intial x-coordinate for this Turtle
        yPos - the intial y-coordinate for this Turtle
        z - the z-plane for this Turtle