Complex.kl

Types

Complex (struct)

The Complex type represents a complex number.

/*
** Example: Complex
*/

Complex c(-4.1, 3.14);

Members

Scalar re  

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 ? ()

Operators

  + Complex
  - Complex
Complex = ( Param other )

Functions

abs

Scalar abs ( in Complex z )

Return the absolute value of this complex number

Math_badDivisor

Boolean Math_badDivisor ( in Float32 s )

Returns true if a divisor is outside the safe range of Float32 divisor values

Math_reportBadDivisor

Math_reportBadDivisor ( in Float32 s, in String contextDesc )

Reports a Float32 bad divisor warning message

signum

Float64 signum ( in Float64 x )

sqrt

Complex_d sqrt ( in Complex_d z )

Return the square root of a complex number