case class Complex(r: Double, i: Double) extends Product with Serializable
- Source
- complex.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Complex
- Serializable
- Product
- Equals
- AnyRef
- Any
Implicitly
- by richDrxAny
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def *(s: Double): Complex
- def *(b: Complex): Complex
- def +(v: Double): Complex
- def +(b: Complex): Complex
- def -(v: Double): Complex
- def -(b: Complex): Complex
- def ->[B](y: B): (Complex, B)
- def /(s: Double): Complex
- def /(b: Complex): Complex
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def abs: Double
- def applyIf(t: Boolean, f: (Complex) => Complex): Complex
- Implicit
- This member is added by an implicit conversion from Complex toDrxAny[Complex] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def applyIf(t: (Complex) => Boolean)(f: (Complex) => Complex): Complex
better chaining for types
better chaining for types
- Implicit
- This member is added by an implicit conversion from Complex toDrxAny[Complex] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def arg: Double
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def conj: Complex
- def dist(that: Complex): Double
- def elementOf(xs: Set[Complex]): Boolean
- Implicit
- This member is added by an implicit conversion from Complex toDrxAny[Complex] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def ensuring(cond: (Complex) => Boolean, msg: => Any): Complex
- def ensuring(cond: (Complex) => Boolean): Complex
- def ensuring(cond: Boolean, msg: => Any): Complex
- def ensuring(cond: Boolean): Complex
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def exp: Complex
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def formatted(fmtstr: String): String
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val i: Double
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def log: Complex
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noneIf(f: (Complex) => Boolean): Option[Complex]
- Implicit
- This member is added by an implicit conversion from Complex toDrxAny[Complex] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def norm: Double
- def normSq: Double
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def optionIf(f: (Complex) => Boolean): Option[Complex]
optionally wrap an object
optionally wrap an object
- Implicit
- This member is added by an implicit conversion from Complex toDrxAny[Complex] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def phase: Angle
- def preApply[B](f: (Complex) => B): B
a preApply f => f(a)
a preApply f => f(a)
- Implicit
- This member is added by an implicit conversion from Complex toDrxAny[Complex] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val r: Double
- def sideEffect(f: (Complex) => Unit): Complex
side effect filter
side effect filter
- Implicit
- This member is added by an implicit conversion from Complex toDrxAny[Complex] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def someIf(f: (Complex) => Boolean): Option[Complex]
- Implicit
- This member is added by an implicit conversion from Complex toDrxAny[Complex] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def sqrt: Complex
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val thisAny: Complex
- Implicit
- This member is added by an implicit conversion from Complex toDrxAny[Complex] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def toVec: Vec
- def unary_-: Complex
negate the vector
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Shadowed Implicit Value Members
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from Complex toany2stringadd[Complex] performed by method any2stringadd in scala.Predef.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(complex: any2stringadd[Complex]).+(other)
- Definition Classes
- any2stringadd
Deprecated Value Members
- def ?>(f: (Complex) => Boolean): Option[Complex]
alias for option if
alias for option if
- Implicit
- This member is added by an implicit conversion from Complex toDrxAny[Complex] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) to many symbols are hard to undertand
- lazy val norm2: Double
- Annotations
- @deprecated
- Deprecated
(Since version 0.2.13) use normSq instead
- def |>[B](f: (Complex) => B): B
- Implicit
- This member is added by an implicit conversion from Complex toDrxAny[Complex] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) use
preApply
if you must (symbols are concise without concision)
- def →[B](y: B): (Complex, B)
- Implicit
- This member is added by an implicit conversion from Complex toArrowAssoc[Complex] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.