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 UpdateMax_OriginalNotSet()
        {
            RangeF actual = new RangeF();

            actual.UpdateMax(-4);

            RangeF expected = new RangeF(float.MaxValue, -4);

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

            actual.UpdateMax(+7);

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

            Assert.AreEqual(expected, actual);
        }