Пример #1
0
        static List <EPObj.MemorySafe_CartCoord> ConvertCoordToDouble(CartesianPoint[] points)
        {
            List <EPObj.MemorySafe_CartCoord> coords = new List <EPObj.MemorySafe_CartCoord>();

            foreach (CartesianPoint pt in points)
            {
                double x = Convert.ToDouble(pt.Coordinate[0]);
                double y = Convert.ToDouble(pt.Coordinate[1]);
                double z = Convert.ToDouble(pt.Coordinate[2]);
                EPObj.MemorySafe_CartCoord coord = new EPObj.MemorySafe_CartCoord(x, y, z);
                coords.Add(coord);
            }

            return(coords);
        }
Пример #2
0
        static List<EPObj.MemorySafe_CartCoord> ConvertCoordToDouble(CartesianPoint[] points)
        {
            List<EPObj.MemorySafe_CartCoord> coords = new List<EPObj.MemorySafe_CartCoord>();
            foreach (CartesianPoint pt in points)
            {
                double x = Convert.ToDouble(pt.Coordinate[0]);
                double y = Convert.ToDouble(pt.Coordinate[1]);
                double z = Convert.ToDouble(pt.Coordinate[2]);
                EPObj.MemorySafe_CartCoord coord = new EPObj.MemorySafe_CartCoord(x, y, z);
                coords.Add(coord);
            }

            return coords;
        }