shortestDistance method

double shortestDistance(
  1. Vector position
)

Returns the shortest distance from position to this edge

Implementation

double shortestDistance(Vector position) =>
    vectorFromPosition(position).norm();