Ejemplo n.º 1
0
        public RangeMicrostation(IList <double> points)
        {
            if (points == null)
            {
                throw new ArgumentNullException(nameof(points));
            }
            if (points.Count != 6)
            {
                throw new ArgumentOutOfRangeException(nameof(points));
            }

            LowLeftPoint = new PointMicrostation(Math.Min(points[0], points[3]),
                                                 Math.Min(points[1], points[4]), points[2]);

            HighRightPoint = new PointMicrostation(Math.Max(points[0], points[3]),
                                                   Math.Max(points[1], points[4]), points[5]);
        }
Ejemplo n.º 2
0
 public RangeMicrostation(PointMicrostation lowLeftPoint, PointMicrostation highRightPoint)
 {
     LowLeftPoint   = lowLeftPoint;
     HighRightPoint = highRightPoint;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Сдвиг по координатам
 /// </summary>
 public RangeMicrostation Offset(PointMicrostation offset) =>
 new RangeMicrostation(LowLeftPoint.Add(offset), HighRightPoint.Add(offset));