setValue static method

MathValue setValue(
  1. MathValue v,
  2. int type,
  3. MathComplex c,
  4. MathFract f,
  5. MathTime t,
)

Implementation

static MathValue setValue( MathValue v, int type, MathComplex c, MathFract f, MathTime t ){
	v._type = type;
	MathComplex.setComplex( v._c, c.real(), c.imag() );
	MathFract.setFract( v._f, f.getMinus(), f.num(), f.denom() );
	MathTime.setTime( v._t, t.fps(), t.getMinus(), t.hour(), t.min(), t.sec(), t.frame() );
	return v;
}