public Point2D[,] GetSamples()
        {
            var uSamples = UDomain.Sample(UCount);
            var vSamples = VDomain.Sample(VCount);

            Point2D[,] samples = new Point2D[UCount, VCount];
            for (int i = 0; i < UCount; i++)
            {
                for (int j = 0; j < VCount; j++)
                {
                    samples[i, j] = new Point2D(uSamples[i], vSamples[j]);
                }
            }

            return(samples);
        }
Ejemplo n.º 2
0
        public Vector[,] GetSamples()
        {
            var uSamples = UDomain.Sample(UCount);
            var vSamples = VDomain.Sample(VCount);

            var samples = new Vector[UCount, VCount];

            for (var i = 0; i < UCount; i++)
            {
                for (var j = 0; j < VCount; j++)
                {
                    samples[i, j] = new Vector(uSamples[i], vSamples[j]);
                }
            }

            return(samples);
        }