Instances of this class own the returned array of points and the points themselves to avoid garbage collection as much as possible. Calling any of the methods will result in the reuse of the previously returned array and vectors, expect
| Modifier and Type | Field and Description |
|---|---|
| private final Array | |
| private final Pool |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Array | Returns: the list of points on the line at integer coordinatesthe start of the line start, GridPoint2 the end of the line end)Returns a list of |
| public Array | Returns: the list of points on the line at integer coordinatesthe start x coordinate of the line startX, int the start y coordinate of the line startY, int the end x coordinate of the line endX, int the end y coordinate of the line endY)Returns a list of |
| public Array | Returns: the list of points on the line at integer coordinatesthe start x coordinate of the line startX, int the start y coordinate of the line startY, int the end x coordinate of the line endX, int the end y coordinate of the line endY, Pool<GridPoint2> the pool from which GridPoint2 instances are fetched pool, Array<GridPoint2> the output array, will be cleared in this method output)Returns a list of |
| points | back to summary |
|---|---|
| private final Array<GridPoint2> points | |
| pool | back to summary |
|---|---|
| private final Pool<GridPoint2> pool | |
| Bresenham2 | back to summary |
|---|---|
| public Bresenham2() | |
| line | back to summary |
|---|---|
| public Array Returns a list of
| |
| line | back to summary |
|---|---|
| public Array Returns a list of
| |
| line | back to summary |
|---|---|
| public Array Returns a list of
| |