Ejemplo n.º 1
0
 public void FromString(string str)
 {
     char[] c = new char[1] {
         ','
     };
     string[] vList = str.Split(c, StringSplitOptions.RemoveEmptyEntries);
     if (vList.Length > 0)
     {
         VdsVec3d v = new VdsVec3d();
         v.FromString(vList[0]);
         Eye = v;
     }
     if (vList.Length > 1)
     {
         VdsVec3d v = new VdsVec3d();
         v.FromString(vList[1]);
         Center = v;
     }
     if (vList.Length > 2)
     {
         VdsVec3d v = new VdsVec3d();
         v.FromString(vList[2]);
         Up = v;
     }
 }
Ejemplo n.º 2
0
        public void FromString(string str)
        {
            char[] c = new char[1] {
                ','
            };
            string[]        vList      = str.Split(c, StringSplitOptions.RemoveEmptyEntries);
            List <VdsVec3d> resultList = new List <VdsVec3d>(vList.Length);

            for (int i = 0; i < vList.Length; ++i)
            {
                VdsVec3d v = new VdsVec3d();
                v.FromString(vList[i]);
                resultList.Add(v);
            }
            ValueList = resultList;
        }