Complex.kl¶
Types¶
Complex (struct)¶
The Complex type represents a complex number.
/*
** Example: Complex
*/
Complex c(-4.1, 3.14);
Methods¶
Complex ( in Complex other ) | |
Complex ( in SInt32 re ) | |
Complex ( in Scalar re ) | |
Complex ( in Scalar re, in Scalar im ) | |
Complex () | |
Boolean | almostEqual ? ( in Complex that ) |
Boolean | almostEqual ? ( in Complex that, in Scalar precision ) |
Scalar | angle ? () |
appendDesc ? ( io String string ) | |
Complex | clone ? () |
Complex | conj ? () |
Boolean | equal ? ( in Complex that ) |
UInt32 | hash ? () |
Complex | inv ? () |
Boolean | isAlmostZero ? ( in Scalar precision ) |
Boolean | isAlmostZero ? () |
Boolean | isZero ? () |
Scalar | length ? () |
Scalar | lengthSquared ? () |
Complex | linearInterpolate ? ( in Complex that, in Scalar t ) |
Scalar | norm ? () |
Scalar | normSq ? () |
normalize ! () | |
Complex | recip ? () |
Scalar | setUnit ! () |
Complex | unit ? () |
Complex | unit_safe ? () |