Class SpiralTurtle


  • public class SpiralTurtle
    extends Turtle
    https://commons.wikimedia.org/wiki/File:Turtle_Graphics_Spiral.svg
    • Constructor Detail

      • SpiralTurtle

        public SpiralTurtle​(Model model,
                            int n)
        Parameters:
        model - a reference to the Model that this Turtle is builing
        n - number of spirals
      • SpiralTurtle

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

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