protected virtual SLExpression VisitHalfwayPoint(HalfwayPointExpression halfwayPointExpression) { var line = Visit(halfwayPointExpression.Line); if (line != halfwayPointExpression.Line) { return(new HalfwayPointExpression { Line = (LineExpression)line, }); } return(halfwayPointExpression); }
protected override SLExpression VisitHalfwayPoint(HalfwayPointExpression halfwayPointExpression) { var line = (TwoPointsLineExpression)Visit(halfwayPointExpression.Line); return(GetEquidistantPoint((CoordinatesPointExpression)line.Point1, (CoordinatesPointExpression)line.Point2)); }