pub fn mulbyi(self: Self) Self
Returns the product of complex number and i=sqrt(-1)
self: Self
98 99 100 101 102 103
pub fn mulbyi(self: Self) Self { return Self{ .re = -self.im, .im = self.re, }; }
Returns the product of complex number and i=sqrt(-1)