コード例 #1
0
        /// This method returns a Point object containing the x and y
        /// coordinates at a given value of u (which should be in the range [0,1]).
        public Point GetPoint(double u)
        {
            List <double> coordinateList     = new List <double>();
            int           numberOfDimensions = P0.GetNumberOfDimensions();

            for (int ii = 0; ii < numberOfDimensions; ii++)
            {
                double coordinate = P0.CoordinateList[ii] * (1 - u) + P1.CoordinateList[ii] * u;
                coordinateList.Add(coordinate);
            }
            Point point = new Point(coordinateList);

            return(point);
        }