Class PolygasketTurtle


  • public class PolygasketTurtle
    extends Turtle
    https://www.clear.rice.edu/comp360/lectures/fall2008/TurtleFractalsL2New.pdf#page=6
    • Constructor Detail

      • PolygasketTurtle

        public PolygasketTurtle​(Model model,
                                int n,
                                int m)
        Parameters:
        model - a reference to the Model that this Turtle is builing
        n - number of sides in the N-gon
        m - number of levels for the Polygasket
      • PolygasketTurtle

        public PolygasketTurtle​(Model model,
                                int n,
                                int m,
                                double xPos,
                                double yPos)
        Parameters:
        model - a reference to the Model that this Turtle is builing
        n - number of sides in the N-gon
        m - number of levels for the Polygasket
        xPos - the intial x-coordinate for this Turtle
        yPos - the intial y-coordinate for this Turtle
      • PolygasketTurtle

        public PolygasketTurtle​(Model model,
                                int n,
                                int m,
                                double xPos,
                                double yPos,
                                double z)
        Parameters:
        model - a reference to the Model that this Turtle is builing
        n - number of sides in the N-gon
        m - number of levels for the Polygasket
        xPos - the intial x-coordinate for this Turtle
        yPos - the intial y-coordinate for this Turtle
        z - the z-plane for this Turtle