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)); }
public virtual ISelectable[] FilterBySubGroup(ISelectable[] selectables, ISelectable selected) { ISelectable[] result = SubGroupUtil.FilterBySubGroup(selectables, selected, EqualityComparer); return(DistanceHelper.SortWorldSpace(result, selected.Position)); }