public SecondaryAxis(Tube p1, Tube p2, TubeFinder tubeFinder) : base(p1, p2, tubeFinder)
 {
     if (!TubesArePerpedicualOrHorizontal)
     {
         throw new InvalidOperationException("Can't create secondary axis, given tubes aren't perpedicual or horizontal");
     }
     NotifyOnPropertyChanged();
 }
Exemple #2
0
        protected Axis(Tube p1, Tube p2, TubeFinder tubeFinder)
        {
            Point1  = new Point(p1);
            Point2  = new Point(p2);
            _finder = tubeFinder;

            _tube1 = p1;
            _tube2 = p2;
        }