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