public class Line
extends Debug
Plots a line.
A line is the shortest distance between two points on the sphere.
-
-
Constructor Summary
Constructors
| Constructor |
Description |
Line(Vector p,
Vector q) |
Creates a Line debug.
|
-
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
-
Creates a Line debug.
- Parameters:
p - start
q - end
-
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?