bool CalcStart(Point point, IModelPivotSelectionRule rule) { return(rule.Start.X <= point.X && rule.Start.Y <= point.Y); }
bool CalcEnd(Point point, IModelPivotSelectionRule rule) { return(rule.End == new Point(-1, -1) || ((rule.End.X == -1 || rule.End.X >= point.X) && (rule.End.Y == -1 || rule.End.Y >= point.Y))); }
bool InsideArea(IModelPivotSelectionRule modelPivotArea, Point point) { return(CalcStart(point, modelPivotArea) && CalcEnd(point, modelPivotArea)); }