예제 #1
0
 public Point FindClosestPoint(Point point)
 {
     if (simpleAssociationJunction != null)
     {
         return(JunctionGeometryHelper.FindClosestPoint(simpleAssociationJunction, point));
     }
     else if (Diamond != null)
     {
         return(Diamond.GetBounds().GetCenter());
     }
     else
     {
         return(GetBounds().GetCenter());
     }
 }