Package | Description |
---|---|
com.badlogic.gdx.math |
Modifier and Type | Method and Description |
---|---|
GridPoint2 |
GridPoint2.add(GridPoint2 other)
Adds another 2D grid point to this point.
|
GridPoint2 |
GridPoint2.add(int x,
int y)
Adds another 2D grid point to this point.
|
GridPoint2 |
GridPoint2.cpy() |
GridPoint2 |
GridPoint2.set(GridPoint2 point)
Sets the coordinates of this 2D grid point to that of another.
|
GridPoint2 |
GridPoint2.set(int x,
int y)
Sets the coordinates of this 2D grid point.
|
GridPoint2 |
GridPoint2.sub(GridPoint2 other)
Subtracts another 2D grid point from this point.
|
GridPoint2 |
GridPoint2.sub(int x,
int y)
Subtracts another 2D grid point from this point.
|
Modifier and Type | Method and Description |
---|---|
Array<GridPoint2> |
Bresenham2.line(GridPoint2 start,
GridPoint2 end)
Returns a list of
GridPoint2 instances along the given line, at integer coordinates. |
Array<GridPoint2> |
Bresenham2.line(int startX,
int startY,
int endX,
int endY)
Returns a list of
GridPoint2 instances along the given line, at integer coordinates. |
Array<GridPoint2> |
Bresenham2.line(int startX,
int startY,
int endX,
int endY,
Pool<GridPoint2> pool,
Array<GridPoint2> output)
Returns a list of
GridPoint2 instances along the given line, at integer coordinates. |
Modifier and Type | Method and Description |
---|---|
GridPoint2 |
GridPoint2.add(GridPoint2 other)
Adds another 2D grid point to this point.
|
float |
GridPoint2.dst(GridPoint2 other) |
float |
GridPoint2.dst2(GridPoint2 other) |
Array<GridPoint2> |
Bresenham2.line(GridPoint2 start,
GridPoint2 end)
Returns a list of
GridPoint2 instances along the given line, at integer coordinates. |
GridPoint2 |
GridPoint2.set(GridPoint2 point)
Sets the coordinates of this 2D grid point to that of another.
|
GridPoint2 |
GridPoint2.sub(GridPoint2 other)
Subtracts another 2D grid point from this point.
|
Modifier and Type | Method and Description |
---|---|
Array<GridPoint2> |
Bresenham2.line(int startX,
int startY,
int endX,
int endY,
Pool<GridPoint2> pool,
Array<GridPoint2> output)
Returns a list of
GridPoint2 instances along the given line, at integer coordinates. |
Array<GridPoint2> |
Bresenham2.line(int startX,
int startY,
int endX,
int endY,
Pool<GridPoint2> pool,
Array<GridPoint2> output)
Returns a list of
GridPoint2 instances along the given line, at integer coordinates. |
Constructor and Description |
---|
GridPoint2(GridPoint2 point)
Copy constructor
|
Copyright © 2016. All rights reserved.