Пример #1
0
        public static void infinite_magnitude_squared()
        {
            var line = new Line2(new Point2(1, 2), new Vector2(3, 4));

            var squaredMagnitude = line.GetMagnitudeSquared();

            squaredMagnitude.Should().Be(Double.PositiveInfinity);
        }
Пример #2
0
        public static void infinite_magnitude_squared() {
            var line = new Line2(new Point2(1, 2), new Vector2(3, 4));

            var squaredMagnitude = line.GetMagnitudeSquared();

            squaredMagnitude.Should().Be(Double.PositiveInfinity);
        }