output array
real component
imaginary component
real and imaginary components
var out = [ 0.0, 0.0 ];
var v = cis( out, 1.0, 0.0 );
// returns [ ~0.540, ~0.841 ]
var bool = ( v === out );
// returns true
Computes the cis function of a complex number.
real component
imaginary component
real and imaginary components
var v = cis( 0.0, 0.0 );
// returns [ 1.0, 0.0 ]
var v = cis( 1.0, 0.0 );
// returns [ ~0.540, ~0.841 ]
Computes the cis function of a complex number.