using System; using System.Collections.Generic; using Point = System.Numerics.Vector4; namespace VectorMathTests { class Program { static float Do(Point p) { return p.X; } struct S { public Point p; } class C { public Point p; } static int Main(string[] args) { Point p = new Point(1, 2, 3, 4); S s = new S(); C c = new C(); s.p.X = 1; c.p.Y = 2; if (((int)Do(s.p) != 1)) { return 0; } if (((int)c.p.X) != 0 || ((int)c.p.Y) != 2) { return 0; } Point[] fixedArr = new Point[5]; Point fixedPoint = new Point(1); fixedArr[0] = fixedPoint; if (fixedArr[0].X != 1) { return 0; } List points = new List(); points.Add(fixedPoint); if (((int)points[0].X) != 1 && ((int)points[0].Y) != 2) { return 0; } return 100; } } }