예제 #1
0
 bool CalcStart(Point point, IModelPivotSelectionRule rule)
 {
     return(rule.Start.X <= point.X && rule.Start.Y <= point.Y);
 }
예제 #2
0
 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)));
 }
예제 #3
0
 bool InsideArea(IModelPivotSelectionRule modelPivotArea, Point point)
 {
     return(CalcStart(point, modelPivotArea) && CalcEnd(point, modelPivotArea));
 }