/// <summary> /// Get the associated Edge that is closest to a point. /// </summary> /// <param name="point"></param> /// <returns></returns> public Edge GetClosestEdge(Vector3 point) { return(Edge.GetClosest <Edge>(this.GetEdges(), point)); }
/// <summary> /// Get the closest neighboring Edge to a point. /// </summary> /// <param name="point"></param> /// <returns></returns> public Edge GetClosestNeighbor(Vector3 point) { return(Edge.GetClosest <Edge>(this.GetNeighbors().Where(e => e.DistanceTo(point) < this.DistanceTo(point)).ToList(), point)); }