public override IEnumerable <Point> GetSnapPoints() { if (SnapTargets.HasFlag(SnapTargets.Vertices)) { yield return(StartPoint); yield return(EndPoint); } }
public override IEnumerable <Point> GetSnapPoints() { if (SnapTargets.HasFlag(SnapTargets.Vertices)) { foreach (var point in Points) { yield return(point); } } }
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); } }