private void ComputeRange(IEnumerable <Point> points, int idx, ref RangeF range)
 {
     foreach (Point point in points)
     {
         range.UpdateMin(point.Position[idx]);
         range.UpdateMax(point.Position[idx]);
     }
 }
        public void UpdateMin_OriginalNotSet()
        {
            RangeF actual = new RangeF();

            actual.UpdateMin(-7);

            RangeF expected = new RangeF(-7, float.MinValue);

            Assert.AreEqual(expected, actual);
        }
        public void UpdateMin_GreaterThan()
        {
            RangeF actual = new RangeF(-5, -3);

            actual.UpdateMin(+7);

            RangeF expected = new RangeF(-5, -3);

            Assert.AreEqual(expected, actual);
        }