public object Clone() { var clone = (Shoot)this.MemberwiseClone(); clone.m_cone = (Cone)m_cone.Clone(); return((object)clone); }
public Cone getNextCone(bool forProjection) { if (mCone == null) { mCone = new Cone((double)form.numericUpDown1.Value, (double)form.numericUpDown2.Value, (double)form.numericUpDown3.Value, (double)form.numericUpDown5.Value, (int)form.numericUpDown6.Value); } if (!forProjection) { return(mCone); } else { mConeProj = (Cone)mCone.Clone(); return(mConeProj); } }