Beispiel #1
0
            public virtual ISelectable[] GetFromSubGroupOnScreen(ISelectable selected)
            {
                var allOnScreen = AreaSelectionType.GetAllInsideViewportArea(GetMainList(), this.ViewportHelper.InitialViewportPoint, this.ViewportHelper.FinalViewportPoint);

                ISelectable[] result = SubGroupUtil.FilterBySubGroup(allOnScreen, selected, EqualityComparer);
                return(DistanceHelper.SortWorldSpace(result, selected.Position));
            }
Beispiel #2
0
 public virtual ISelectable[] FilterBySubGroup(ISelectable[] selectables, ISelectable selected)
 {
     ISelectable[] result = SubGroupUtil.FilterBySubGroup(selectables, selected, EqualityComparer);
     return(DistanceHelper.SortWorldSpace(result, selected.Position));
 }