AStar.getPointConnections

Returns an array with the ids of the points that form the connect with the given point.

More...
struct AStar
@nogc nothrow
PoolIntArray
getPointConnections
(
in long id
)

Detailed Description

var as = AStar.new()

as.add_point(1, Vector3(0,0,0)) as.add_point(2, Vector3(0,1,0)) as.add_point(3, Vector3(1,1,0)) as.add_point(4, Vector3(2,0,0))

as.connect_points(1, 2, true) as.connect_points(1, 3, true)

var neighbors = as.get_point_connections(1) # returns 2, 3

Meta