Type Method

nodeWithGridPosition:

Creates a graph node with the specified position on a grid.

Declaration

+ (instancetype)nodeWithGridPosition:(vector_int2)gridPosition;

Parameters

gridPosition

The position for the node on a discrete integer grid.

Return Value

A new graph node representing the specified grid position.

See Also

Creating a Graph Node

- initWithGridPosition:

Initializes a graph node with the specified position on a grid.