Instance Method

initWithGridPosition:

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

Declaration

- (instancetype)initWithGridPosition:(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

+ nodeWithGridPosition:

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