Пример #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));
            }
Пример #2
0
 public virtual ISelectable[] GetAllOnScreenArea()
 {
     return(AreaSelectionType.GetAllInsideViewportArea(GetMainList(), this.ViewportHelper.InitialViewportPoint, this.ViewportHelper.FinalViewportPoint));
 }