Example #1
0
        public void LengthBetweenTwoPoints()
        {
            Vector2 v0 = new Vector2(0.0f, 0.0f);
            Vector2 v1 = new Vector2(10.0f, 0.0f);

            var result = Vector2Ext.DistanceBetweenTwoPoints(v0, v1);

            Assert.Equal(10.0f, result);
        }