public class Circle
extends Debug
Zeichnet einen Kreis oder einen Kreisbogen.
-
-
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
public Circle(
Vector p,
double r)
Erzeugt ein Kreis-Debug.
- Parameters:
p
- Mittelpunkt
r
- Radius (als sphärischer Winkel)
-
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
-
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?