Esempio n. 1
0
        public void magnitude()
        {
            var s = new Segment2(new Point2(1, 2), new Vector2(3, 4));

            Assert.Equal(Math.Sqrt(9 + 16), s.GetMagnitude());
        }
Esempio n. 2
0
        public void magnitude() {
            var s = new Segment2(new Point2(1, 2), new Vector2(3, 4));

            Assert.Equal(Math.Sqrt(9 + 16), s.GetMagnitude());
        }