Example #1
0
        /// assignment
//C++ TO C# CONVERTER NOTE: This 'CopyFrom' method was converted from the original copy assignment operator:
//ORIGINAL LINE: CLPoint& operator =(const CLPoint &clp)
        public CLPoint CopyFrom(CLPoint clp)
        {
            if (this == clp)             // check for self-assignment
            {
                return(this);
            }
            x  = clp.x;
            y  = clp.y;
            z  = clp.z;
            cc = new CCPoint((clp.cc));
            return(this);
        }
Example #2
0
 /// copy constructor
 public CLPoint(CLPoint cl) : base(cl.x, cl.y, cl.z)
 {
     cc = new CCPoint(cl.cc);
 }