mul method

MathTime mul(
  1. dynamic r
)

Implementation

MathTime mul( dynamic r ){
	if( r is MathTime ){
		MathTime ll = dup( this );
		ll._update();
		double rr = r.toFloat();
		MathTime t = MathTime(
			ll._minus,
			ll._hour  * rr,
			ll._min   * rr,
			ll._sec   * rr,
			ll._frame * rr
			);
		t.reduce();
		return t;
	}
	double rr = ClipMath.toDouble(r);
	MathTime ll = dup( this );
	ll._update();
	MathTime t = MathTime(
		ll._minus,
		ll._hour  * rr,
		ll._min   * rr,
		ll._sec   * rr,
		ll._frame * rr
		);
	t.reduce();
	return t;
}