Example #1
0
        public PathFigure ComputePathFigure(Point start, Point end, LineType lineType, double middlePosition,
                                            out double startAngle, out double endAngle)
        {
            var linePoints = ComputeLinePoints(start, end, lineType, middlePosition, out startAngle, out endAngle);
            var pf         = ConnectorUtilities.GetPathFigureFromPoints(linePoints);

            pf.IsFilled = false;
            pf.IsClosed = false;

            return(pf);
        }
 public PathFigure ComputePathFigure(Point start, Point end, LineType lineType, double middlePosition, out double startAngle, out double endAngle)
 {
     return(ConnectorUtilities.GetPathFigureFromPoints(
                ComputeLinePoints(start, end, lineType, middlePosition, out startAngle, out endAngle)));
 }
 void ComputePath(LineType lineType, Point start, Point end, double distance)
 {
     _myPath.Clear();
     _myPath.Add(
         ConnectorUtilities.GetPathFigureFromPoints(ComputeLinePoints(start, end, lineType, distance, out _startAngle, out _endAngle)));
 }