Gets the distance of the geometry.
This should be implemented by subclasses to compute the correct distance.
@override double get distance => 0.0;