Exemplo n.º 1
0
        protected override SLExpression VisitLinesIntersectionPoint(LinesIntersectionPointExpression linesIntersectionPointExpression)
        {
            var line1 = (TwoPointsLineExpression)Visit(linesIntersectionPointExpression.Line1);
            var line2 = (TwoPointsLineExpression)Visit(linesIntersectionPointExpression.Line2);

            return(GetIntersectionPoint(line1, line2));
        }
Exemplo n.º 2
0
        protected virtual SLExpression VisitLinesIntersectionPoint(LinesIntersectionPointExpression linesIntersectionPointExpression)
        {
            var line1 = Visit(linesIntersectionPointExpression.Line1);
            var line2 = Visit(linesIntersectionPointExpression.Line2);

            if (line1 != linesIntersectionPointExpression.Line1 || line2 != linesIntersectionPointExpression.Line2)
            {
                return(new LinesIntersectionPointExpression
                {
                    Line1 = (LineExpression)line1,
                    Line2 = (LineExpression)line2
                });
            }
            return(linesIntersectionPointExpression);
        }