public abstract class CantorDust
extends java.lang.Object
| Constructor and Description |
|---|
CantorDust() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
eraseLine(double start,
double end)
Erases a line segment.
|
double |
hausdorffDimension() |
void |
recurse(double start,
double end,
int n)
The recursive algorithm for Cantor dust.
|
public double hausdorffDimension()
public void recurse(double start,
double end,
int n)
start - the start of the line.end - the end of the line.n - the number of recursions.protected abstract void eraseLine(double start,
double end)