Afterglow.Math.Test_Vector2.Constructor_with_array_as_argument C# (CSharp) Method

Constructor_with_array_as_argument() private method

private Constructor_with_array_as_argument ( ) : void
return void
        public void Constructor_with_array_as_argument()
        {
            const float X = 1.0f;
            const float Y = 2.0f;
            var values = new[] { X, Y };

            var vector2 = new Vector2(values);

            Assert.AreEqual(X, vector2.X);
            Assert.AreEqual(Y, vector2.Y);
        }