copy static method
Implementation
static MathValue copy( MathValue v, MathValue x ){
v._type = x._type;
switch( v._type ){
case ClipMath.valueTypeComplex: MathComplex.setComplex( v._c, x._c.real(), x._c.imag() ); break;
case ClipMath.valueTypeFract : MathFract.setFract( v._f, x._f.getMinus(), x._f.num(), x._f.denom() ); break;
case ClipMath.valueTypeTime : MathTime.setTime( v._t, x._t.fps(), x._t.getMinus(), x._t.hour(), x._t.min(), x._t.sec(), x._t.frame() ); break;
}
return v;
}