final class DrxLong extends AnyVal
- Source
- numeric.scala
- Alphabetic
- By Inheritance
- DrxLong
- AnyVal
- Any
- by richDrxAny
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- def #/(z: Long): Ratio
- def %/(w: Double): Double
- def %?(w: Long): Boolean
- def *(r: Ratio): Ratio
- def *(c: Complex): Complex
- def *(vec: Vec): Vec
- def *[A](other: BaseValue[A]): A
- def **(e: Int): Long
- def **(e: Double): Double
- def +(other: String): String
- def +-(w: Double): Bound[Double]
- def ->[B](y: B): (DrxLong, B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- def G: Long
- def Hz: Frequency
- def M: Long
- def applyIf(t: Boolean, f: (DrxLong) => DrxLong): DrxLong
- Implicit
- This member is added by an implicit conversion from DrxLong toDrxAny[DrxLong] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def applyIf(t: (DrxLong) => Boolean)(f: (DrxLong) => DrxLong): DrxLong
better chaining for types
better chaining for types
- Implicit
- This member is added by an implicit conversion from DrxLong toDrxAny[DrxLong] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def base(charset: IndexedSeq[Char]): String
- def base(radix: Int, padZeroToWidth: Int = 1): String
- def base(radix: Int): String
- def bit(i: Int): Boolean
returns true or false if a bit is set where i=0 is the LSB
- def bitFlip(i: Int): Long
- def bitNot(i: Int): Boolean
- def bitSet(i: Int, b: Boolean): Long
- def bshift(n: Int): Long
- def dB: Double
- def day: Time
- def deg: Angle
- def diff(w: Long): Long
- def divCeil(k: Long): Long
- def divFloor(k: Long): Long
- def divMod(k: Long): (Long, Long)
- def double: Long
- def elementOf(xs: Set[DrxLong]): Boolean
- Implicit
- This member is added by an implicit conversion from DrxLong toDrxAny[DrxLong] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def ensuring(cond: (DrxLong) => Boolean, msg: => Any): DrxLong
- def ensuring(cond: (DrxLong) => Boolean): DrxLong
- def ensuring(cond: Boolean, msg: => Any): DrxLong
- def ensuring(cond: Boolean): DrxLong
- def even: Boolean
- def exp(base: Double): Double
nice way to flip things around rather than using base.pow(vd); useful for chained equation descriptions
- def exp: Double
- def exp10: Double
- def exp2: Double
- def expE: Double
- def factorial: Long
- def foldLeft[T](acc: T)(f: (T) => T): T
- def formatted(fmtstr: String): String
- def ft: Length
- def g0: Acceleration
- def gamma: Long
- def gcd(z: Long): Long
greatest common divisor
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def half: Long
- def hr: Time
- def hz: Frequency
- def i: Complex
imaginary number notation
- def inv: Double
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def iterate[T](acc: T)(f: (T) => T): T
- def k: Long
- def km: Length
- def lerp(b: Long)(amt: Double): Long
- def ln: Double
- def log: Double
- def log(b: Double): Double
- def log10: Double
- def log2: Double
- def logE: Double
- def m: Length
- def mean(w: Double): Double
- def minute: Time
- def modOption(w: Long): Option[Long]
- def month: Time
- def ms: Time
- def neg: Long
- def next: Long
- def noneIf(f: (DrxLong) => Boolean): Option[DrxLong]
- Implicit
- This member is added by an implicit conversion from DrxLong toDrxAny[DrxLong] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def ns: Time
- def odd: Boolean
- def optionIf(f: (DrxLong) => Boolean): Option[DrxLong]
optionally wrap an object
optionally wrap an object
- Implicit
- This member is added by an implicit conversion from DrxLong toDrxAny[DrxLong] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def outOf(z: Long): Ratio
- def over(z: Long): Ratio
return a Ratio (Rational) type reduced
- def percent: Ratio
ratio construction by percent
- def plusOrMinus(w: Double): Bound[Double]
- def pow(e: Double): Double
- def preApply[B](f: (DrxLong) => B): B
a preApply f => f(a)
a preApply f => f(a)
- Implicit
- This member is added by an implicit conversion from DrxLong toDrxAny[DrxLong] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def prev: Long
- def px: Weight
- def rad: Angle
- def s: Time
- def sat(max: Long): Long
- def sat(min: Long, max: Long): Long
- def sgn: Long
- def sideEffect(f: (DrxLong) => Unit): DrxLong
side effect filter
side effect filter
- Implicit
- This member is added by an implicit conversion from DrxLong toDrxAny[DrxLong] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def sigma: Ratio
- def sigmoid: Double
- def someIf(f: (DrxLong) => Boolean): Option[DrxLong]
- Implicit
- This member is added by an implicit conversion from DrxLong toDrxAny[DrxLong] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def sq: Long
- def sqrt: Double
- def take(n: Int): Iterable[Double]
- val thisAny: DrxLong
- Implicit
- This member is added by an implicit conversion from DrxLong toDrxAny[DrxLong] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def times(f: => Unit): Unit
- def toBig: BigDecimal
- def toByteArray: Array[Byte]
- def toString(): String
- Definition Classes
- Any
- def todB: Double
- def twosComp(depth: Int): Long
- def uniformHash: Int
- val v: Long
- def x: Vec
- def xy: Vec
- def xyz: Vec
- def y: Vec
- def yr: Time
- def z: Vec
- def ||(w: Double): Double
- def ~(w: Double): Bound[Double]
- def ~>(w: Double): Bound[Double]
Deprecated Value Members
- def #^(e: Int): Long
- Annotations
- @deprecated
- Deprecated
(Since version 0.2.13) just use **, don't duplicate operator symbols
- def #^(e: Double): Double
consider alternative exponent function for drx exponents that matches eponential as higher precidence than / or *
consider alternative exponent function for drx exponents that matches eponential as higher precidence than / or *
- Annotations
- @deprecated
- Deprecated
(Since version 0.2.13) just use **, don't duplicate operator symbols
- def /:[T](acc: T)(f: (T) => T): T
- Annotations
- @deprecated
- Deprecated
(Since version dp) use foldLeft instead in scala-2.13
- def ?>(f: (DrxLong) => Boolean): Option[DrxLong]
alias for option if
alias for option if
- Implicit
- This member is added by an implicit conversion from DrxLong toDrxAny[DrxLong] 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
- def bitset(i: Int, b: Boolean): Long
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) use title case method name bitSet
- def frac(z: Long): Ratio
- Annotations
- @deprecated
- Deprecated
(Since version di) this latex form is not infix anyways
- def |>[B](f: (DrxLong) => B): B
- Implicit
- This member is added by an implicit conversion from DrxLong toDrxAny[DrxLong] 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): (DrxLong, B)
- Implicit
- This member is added by an implicit conversion from DrxLong toArrowAssoc[DrxLong] 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.