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); } }
public bool IsVertical() { return(OCVConst.IsEqualValue(Math.Round(Line.Direction.X, 1), 0) && OCVConst.IsEqualValue(Math.Round(Line.Direction.Y, 1), 1)); }
public bool IsHorizontal() { return(OCVConst.IsEqualValue(Math.Round(Line.Direction.X, 1), -1) && OCVConst.IsEqualValue(Math.Round(Line.Direction.Y, 1), 0)); }