public class Circle
extends Debug
Plots a circle or a circular arc.
-
-
Constructor Summary
Constructors
| Constructor |
Description |
Circle(Vector p,
double r) |
Creates a circular debug.
|
Circle(Vector p,
double r,
double alpha,
double phi) |
Creates a circular arc debug with starting angle and arc length.
|
-
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) |
[Implementation]
|
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)
Creates a circular debug.
- Parameters:
p - center
r - radius (spherical angle)
-
public Circle(
Vector p,
double r,
double alpha,
double phi)
Creates a circular arc debug with starting angle and arc length.
- Parameters:
p - center
r - radius (spherical angle)
alpha - starting angle
phi - arc length
-
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)
[Implementation]
- Overrides:
paint in class Debug
- Parameters:
g - Graphics Context
color - color of the debug
globe - color of the sphere
scale - scaling (sphere radius in pixels)
sphere - game sphere
base - perspective matrix
front - front or back?