Class Circle

java.lang.Object
hoverball.debug.Debug
hoverball.debug.Circle

public class Circle
extends Debug
Zeichnet einen Kreis oder einen Kreisbogen.
  • Field Summary

    Fields inherited from class hoverball.debug.Debug

    color, debugs
  • Constructor Summary

    Constructors 
    Constructor Description
    Circle​(Vector p, double r)
    Erzeugt ein Kreis-Debug.
    Circle​(Vector p, double r, double alpha, double phi)
    Erzeugt ein Kreisbogen-Debug mit Startwinkel und Bogenlänge.
  • Method Summary

    Modifier and Type Method Description
    void paint​(java.awt.Graphics g, java.awt.Color color, java.awt.Color globe, double scale, Sphere sphere, Matrix base, boolean front)
    [Implementierung]

    Methods inherited from class hoverball.debug.Debug

    color, scale, vector

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Circle

      public Circle​(Vector p, double r)
      Erzeugt ein Kreis-Debug.
      Parameters:
      p - Mittelpunkt
      r - Radius (als sphärischer Winkel)
    • Circle

      public Circle​(Vector p, double r, double alpha, double phi)
      Erzeugt ein Kreisbogen-Debug mit Startwinkel und Bogenlänge.
      Parameters:
      p - Mittelpunkt
      r - Radius (als sphärischer Winkel)
      alpha - Startwinkel
      phi - Bogenlänge
  • Method Details

    • paint

      public void paint​(java.awt.Graphics g, java.awt.Color color, java.awt.Color globe, double scale, Sphere sphere, Matrix base, boolean front)
      [Implementierung]
      Overrides:
      paint in class Debug
      Parameters:
      g - Graphics-Context
      color - Farbe des Debugs
      globe - Farbe der Sphäre
      scale - Skalierung (Sphären-Radius in Pixeln)
      sphere - Sphäre des Spiels
      base - Matrix der Perspektive
      front - Vorderseite?