delta

fun delta(from: Point3D, to: Point3D): Point3D(source)

Signed shortest-direction delta from from to to under this projection's geometry. For non-torus this is to - from. For a torus, each component picks whichever wrap (positive or negative) is shorter on its axis.

Use this for direction-aware forces (3D separation, cohesion) where averaging absolute positions would break across the wrap boundary.