Uses of Class
com.badlogic.gdx.math.GridPoint2
-
Packages that use GridPoint2 Package Description com.badlogic.gdx.math -
-
Uses of GridPoint2 in com.badlogic.gdx.math
Methods in com.badlogic.gdx.math that return GridPoint2 Modifier and Type Method Description GridPoint2
GridPoint2. add(int x, int y)
Adds another 2D grid point to this point.GridPoint2
GridPoint2. add(GridPoint2 other)
Adds another 2D grid point to this point.GridPoint2
GridPoint2. cpy()
GridPoint2
GridPoint2. set(int x, int y)
Sets the coordinates of this 2D grid point.GridPoint2
GridPoint2. set(GridPoint2 point)
Sets the coordinates of this 2D grid point to that of another.GridPoint2
GridPoint2. sub(int x, int y)
Subtracts another 2D grid point from this point.GridPoint2
GridPoint2. sub(GridPoint2 other)
Subtracts another 2D grid point from this point.Methods in com.badlogic.gdx.math that return types with arguments of type GridPoint2 Modifier and Type Method Description Array<GridPoint2>
Bresenham2. line(int startX, int startY, int endX, int endY)
Returns a list ofGridPoint2
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 ofGridPoint2
instances along the given line, at integer coordinates.Array<GridPoint2>
Bresenham2. line(GridPoint2 start, GridPoint2 end)
Returns a list ofGridPoint2
instances along the given line, at integer coordinates.Methods in com.badlogic.gdx.math with parameters of type GridPoint2 Modifier and Type Method 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 ofGridPoint2
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.Method parameters in com.badlogic.gdx.math with type arguments of type GridPoint2 Modifier and Type Method Description Array<GridPoint2>
Bresenham2. line(int startX, int startY, int endX, int endY, Pool<GridPoint2> pool, Array<GridPoint2> output)
Returns a list ofGridPoint2
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 ofGridPoint2
instances along the given line, at integer coordinates.Constructors in com.badlogic.gdx.math with parameters of type GridPoint2 Constructor Description GridPoint2(GridPoint2 point)
Copy constructor
-