예제 #1
0
        public override cForce copy( )
        {
            cForceVortex f = new cForceVortex();

            f.copy(this);
            return(f);
        }
예제 #2
0
        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;
        }