public class BresenhamLine extends Object implements LineProcessor2D, LineProcessor3D
| Constructor and Description |
|---|
BresenhamLine() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
processLine2D(int x0,
int y0,
int x1,
int y1,
PointHandler2D<T> handler)
Process 2D line
|
<T> T |
processLine3D(int x0,
int y0,
int z0,
int x1,
int y1,
int z1,
PointHandler3D<T> handler)
Process 3D line
|
protected static int |
sign(int a) |
protected static int sign(int a)
public <T> T processLine2D(int x0,
int y0,
int x1,
int y1,
PointHandler2D<T> handler)
LineProcessor2DprocessLine2D in interface LineProcessor2DT - handler and return value typehandler - 2D point handlerpublic <T> T processLine3D(int x0,
int y0,
int z0,
int x1,
int y1,
int z1,
PointHandler3D<T> handler)
LineProcessor3DprocessLine3D in interface LineProcessor3DT - handler and return value typehandler - 3D point handlerCopyright © 2014. All rights reserved.