euclidean Distance2D
inline fun <ID : Any> Aggregate<ID>.euclideanDistance2D(crossinline extractPosition: (ID) -> Point2D): Field<ID, Double>
Returns a field containing the Euclidean distance from the local node to each neighbor.
Parameters
extract Position
a function that extracts the position of a node given its ID.
fun <ID : Any> Aggregate<ID>.euclideanDistance2D(localPosition: Pair<Double, Double>): Field<ID, Double>
Returns a field containing the Euclidean distance from the local node to each neighbor.
Parameters
local Position
a function that extracts the position of a node given its ID.