public double HorizontalDistance(OCVLineData line2) { if (this.IsVertical() && line2.IsVertical()) { return(Math.Abs(GetX() - line2.GetX())); } else { return(-1); } }
protected override double GetLocation(OCVLineData line) { return(line.GetX()); }