Пример #1
0
 private static Point2D GetVertexCenterOrUndefined(LayoutVertexToPointMap vertexCenters, LayoutVertexBase vertex)
 {
     vertexCenters.TryGet(vertex, out var center, valueForMissingKey: Point2D.Undefined);
     return(center);
 }
Пример #2
0
 private static Point2D GetVertexCenterOrUndefined(LayoutVertexToPointMap vertexCenters, LayoutVertexBase vertex)
 {
     return(vertexCenters.Contains(vertex)
         ? vertexCenters.Get(vertex)
         : Point2D.Undefined);
 }