distance method

LinkForce distance([
  1. DistanceFun? fun
])

Implementation

LinkForce distance([DistanceFun? fun]) {
  if (fun != null) {
    _distanceFun = fun;
    _initialize();
  }
  return this;
}