Exemplo n.º 1
0
        protected virtual SLExpression VisitHalfwayPoint(HalfwayPointExpression halfwayPointExpression)
        {
            var line = Visit(halfwayPointExpression.Line);

            if (line != halfwayPointExpression.Line)
            {
                return(new HalfwayPointExpression
                {
                    Line = (LineExpression)line,
                });
            }
            return(halfwayPointExpression);
        }
Exemplo n.º 2
0
        protected override SLExpression VisitHalfwayPoint(HalfwayPointExpression halfwayPointExpression)
        {
            var line = (TwoPointsLineExpression)Visit(halfwayPointExpression.Line);

            return(GetEquidistantPoint((CoordinatesPointExpression)line.Point1, (CoordinatesPointExpression)line.Point2));
        }