Esempio n. 1
0
 public XYZ(XYZPara _enclosing, float x, float y, float z)
     : base()
 {
     this._enclosing = _enclosing;
     this.x          = x;
     this.y          = y;
     this.z          = z;
 }
Esempio n. 2
0
        public override IPara Initial(string con, string v)
        {
            XYZPara para = (XYZPara)pool.BorrowObject();

            string[] ss = v.Split(",");
            if (ss.Length == 3)
            {
                para.value = new XYZPara.XYZ(this, float.Parse(ss[0].Trim()), float.Parse(ss[1].Trim()), float.Parse(ss[2].Trim()));
            }
            else
            {
                para.value = new XYZPara.XYZ(this, 0, 0, 0);
            }
            return(para);
        }