public ILength Distance(IPosition point) { // If the test position falls anywhere inside the outline of the text, // treat it as a distance of zero. IPosition[] outline = this.Outline; if (Geom.IsOverlap(outline, point)) { return(Length.Zero); } double dsq = Geom.MinDistanceSquared(outline, point); return(new Length(Math.Sqrt(dsq))); }