Beispiel #1
0
        public override IEnumerable <Point> GetSnapPoints()
        {
            if (SnapTargets.HasFlag(SnapTargets.Vertices))
            {
                yield return(StartPoint);

                yield return(EndPoint);
            }
        }
Beispiel #2
0
 public override IEnumerable <Point> GetSnapPoints()
 {
     if (SnapTargets.HasFlag(SnapTargets.Vertices))
     {
         foreach (var point in Points)
         {
             yield return(point);
         }
     }
 }
Beispiel #3
0
        public virtual IEnumerable <Point> GetSnapPoints()
        {
            if (SnapTargets.HasFlag(SnapTargets.Vertices))
            {
                foreach (var vertex in BoundingBox.GetVertices())
                {
                    yield return(vertex);
                }
            }
            if (SnapTargets.HasFlag(SnapTargets.MidPoints))
            {
                yield return(BoundingBox.TopCenter.Clone());

                yield return(BoundingBox.RightCenter.Clone());

                yield return(BoundingBox.BottomCenter.Clone());

                yield return(BoundingBox.LeftCenter.Clone());
            }
            if (SnapTargets.HasFlag(SnapTargets.Center))
            {
                yield return(BoundingBox.Center);
            }
        }