public alignmentDataPacket(int p, HorizontalAlignmentBase alignmentItem)
 {
     myIndex = p;
      BeginStationDbl = alignmentItem.BeginStation;
      Length = alignmentItem.Length;
      Radius = alignmentItem.Radius;
      Deflection = alignmentItem.Deflection;
      HasChanged = true;
 }
        private bool theseConnectAtItemBeginPt(HorizontalAlignmentBase itemInQuestion, HorizontalAlignmentBase secondItem)
        {
            Double equalityTolerance = 0.00015;

             var distanceToEndVector = itemInQuestion.BeginPoint - secondItem.EndPoint;
             var distanceToBeginVector = itemInQuestion.BeginPoint - secondItem.BeginPoint;
             return (Math.Abs(distanceToEndVector.Length) < equalityTolerance) ||
                (Math.Abs(distanceToBeginVector.Length) < equalityTolerance);
        }