mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 10:01:23 +01:00
parameter changes for getGridPolygonLocal
This commit is contained in:
parent
0b520da04c
commit
1a3d7dbcf1
1 changed files with 2 additions and 2 deletions
|
|
@ -56,8 +56,8 @@ export function getGridPolygon(i: number): TPoints {
|
|||
return grid.cells.v[i].map(v => grid.vertices.p[v]);
|
||||
}
|
||||
|
||||
export function getGridPolygonWithGrid(i: number, cells: Pick<IGrid["cells"], "v">, vertices: IGraphVertices): TPoints {
|
||||
return cells.v[i].map(v => vertices.p[v]);
|
||||
export function getGridPolygonLocal(i: number, grid: IGrid): TPoints { // TODO: find a better name
|
||||
return grid.cells.v[i].map(v => grid.vertices.p[v]);
|
||||
}
|
||||
|
||||
export function isLand(cellId: number) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue