Lissajou
Class LissajouAlgo

java.lang.Object
  extended by Lissajou.LissajouAlgo

public class LissajouAlgo
extends java.lang.Object

Klasse zur Berechnung des Kochpolygons

Author:
tbr

Constructor Summary
LissajouAlgo(java.awt.Graphics g, int width, int height, int level, int polygons, boolean clockwise)
          Zeichnet das Polygon Konstruktor
 
Method Summary
 void KochRek(java.awt.Graphics g, Node p, Node q, int level, int multiplikant)
          rekursive Funktion um aus einer Linie eine Kochkurve zu machen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LissajouAlgo

public LissajouAlgo(java.awt.Graphics g,
                    int width,
                    int height,
                    int level,
                    int polygons,
                    boolean clockwise)
Zeichnet das Polygon Konstruktor

Parameters:
g -
width -
level -
polygons -
clockwise -
Method Detail

KochRek

public void KochRek(java.awt.Graphics g,
                    Node p,
                    Node q,
                    int level,
                    int multiplikant)
rekursive Funktion um aus einer Linie eine Kochkurve zu machen

Parameters:
g - -> Grafikobjekt auf dem gezeichnet werden soll
p - -> Knotenpunkt der Linie
q - -> Knotenpunkt der Linie
level - -> Rekursionstiefe
multiplikant - -> um die Richtung der Operation zu beeinflussen