Exemple #1
0
 public bool IsInRange(OCVLineData line)
 {
     if (!OCVConst.IsEqualValue(line.Line.Direction.X, Direction.X) && OCVConst.IsEqualValue(line.Line.Direction.Y, Direction.Y))
     {
         return(false);
     }
     else
     {
         return(GetLocation(line) <= maxRange && GetLocation(line) >= minRange);
     }
 }
Exemple #2
0
 public bool IsVertical()
 {
     return(OCVConst.IsEqualValue(Math.Round(Line.Direction.X, 1), 0) &&
            OCVConst.IsEqualValue(Math.Round(Line.Direction.Y, 1), 1));
 }
Exemple #3
0
 public bool IsHorizontal()
 {
     return(OCVConst.IsEqualValue(Math.Round(Line.Direction.X, 1), -1) &&
            OCVConst.IsEqualValue(Math.Round(Line.Direction.Y, 1), 0));
 }