public override cForce copy( ) { cForceVortex f = new cForceVortex(); f.copy(this); return(f); }
public override void copy(cForce pforce) { base.copy(pforce); if (!(pforce is cForceVortex)) { return; } cForceVortex pforcechild = ( cForceVortex )(pforce); // Cast so next lines work. _eyeposition.copy(pforcechild._eyeposition); _spiralangle = pforcechild._spiralangle; }