euclideanDistance3D

inline fun <ID : Any> Aggregate<ID>.euclideanDistance3D(crossinline extractPosition: (ID) -> Point3D): Field<ID, Double>

Returns a field containing the Euclidean distance from the local node to each neighbor.

Parameters

extractPosition

a function that extracts the position of a node given its ID.


fun <ID : Any> Aggregate<ID>.euclideanDistance3D(localPosition: Point3D): Field<ID, Double>
fun <ID : Any> Aggregate<ID>.euclideanDistance3D(localPosition: Triple<Double, Double, Double>): Field<ID, Double>

Returns a field containing the Euclidean distance from the local node to each neighbor.

Parameters

localPosition

a function that extracts the position of a node given its ID.