Packages

class Bound[A] extends LerpInv[A]

Source
bound.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Bound
  2. LerpInv
  3. Lerp
  4. AnyRef
  5. Any
Implicitly
  1. by richDrxAny
  2. by DrxBoundOps
  3. by any2stringadd
  4. by StringFormat
  5. by Ensuring
  6. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Bound(min: A, max: A)(implicit b: Boundable[A])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def %(ratio: Double): A

    alias for lerp or apply

  4. def *(gain: Double): Bound[A]

    operator form to scale from the middle scaleAtRatio(gain,0.5)

  5. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from Bound[A] toany2stringadd[Bound[A]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  6. def ++(that: Bound[A]): Bound[A]

    merge(grow to a union) bound (useful for parallel processing)

  7. def --(that: Bound[A]): Option[Bound[A]]
  8. def -->[B](that: Bound[B]): QuantitativeBound[A, B]

    mapsTo, arrow, linear transformation, morphism ...

    mapsTo, arrow, linear transformation, morphism ... https://www.wikiwand.com/en/Map_(mathematics)

  9. def -->[B](range: Lerp[B]): Quantitative[A, B]
    Definition Classes
    LerpInv
  10. def -->[B](range: LerpInv[B]): QuantitativeInv[A, B]
    Definition Classes
    LerpInv
  11. def ->[B](y: B): (Bound[A], B)
    Implicit
    This member is added by an implicit conversion from Bound[A] toArrowAssoc[Bound[A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  12. def /(gain: Double): Bound[A]
  13. def <(v: A): Boolean
  14. def ==(that: Bound[A]): Boolean
  15. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  16. def >(v: A): Boolean
  17. def applyIf(t: Boolean, f: (Bound[A]) => Bound[A]): Bound[A]
    Implicit
    This member is added by an implicit conversion from Bound[A] toDrxAny[Bound[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  18. def applyIf(t: (Bound[A]) => Boolean)(f: (Bound[A]) => Bound[A]): Bound[A]

    better chaining for types

    better chaining for types

    Implicit
    This member is added by an implicit conversion from Bound[A] toDrxAny[Bound[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  19. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  20. def bisect(f: (A) => Boolean, N: Int = 64): A

    generic bisect algorithm with N steps for a function that turns from false to true Note:this version requires the initial crossing occurs between min~max, or f(min) == false && f(max) == true)

  21. def bisectOption(f: (A) => Boolean, N: Int = 64): Option[A]
  22. def by[B](stepSize: B)(implicit s: BoundStep[A, B]): Iterator[A]

    a nice step by function that matches the scala.Range form, Note: the implicit typeclass is used for bounds that can not be steped, like colors and also prevent the requirement of a hard coded type parameter for Bounds

  23. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  24. def contains(v: A): Boolean
    Definition Classes
    BoundLerpInv
  25. def containsAll(that: Bound[A]): Boolean
  26. def containsNot(v: A): Boolean
  27. def containsSome(that: Bound[A]): Boolean

    of any part is overlapped cases | condition | a containsSome b | a containsAll b | a contains b is ambiguous (don't use) a{ b( ) } total true true a{ b( } ) partial true false a{} b( ) none false false b( a{} ) inside true false

  28. def dist: Double
  29. def elementOf(xs: Set[Bound[A]]): Boolean
    Implicit
    This member is added by an implicit conversion from Bound[A] toDrxAny[Bound[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  30. def end: A

    alias for max

    alias for max

    Definition Classes
    Lerp
  31. def ensuring(cond: (Bound[A]) => Boolean, msg: => Any): Bound[A]
    Implicit
    This member is added by an implicit conversion from Bound[A] toEnsuring[Bound[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  32. def ensuring(cond: (Bound[A]) => Boolean): Bound[A]
    Implicit
    This member is added by an implicit conversion from Bound[A] toEnsuring[Bound[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  33. def ensuring(cond: Boolean, msg: => Any): Bound[A]
    Implicit
    This member is added by an implicit conversion from Bound[A] toEnsuring[Bound[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  34. def ensuring(cond: Boolean): Bound[A]
    Implicit
    This member is added by an implicit conversion from Bound[A] toEnsuring[Bound[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  35. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. def equals(that: Any): Boolean
    Definition Classes
    Bound → AnyRef → Any
  37. def extend(n: Int)(implicit t: Tickable[A]): Bound[A]
  38. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  39. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Bound[A] toStringFormat[Bound[A]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  40. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  41. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  42. def in_:(b: Bound[A]): Boolean

    convenience function to make containment tests read better with right associativity

  43. def in_:(v: A): Boolean
  44. def isInside(b: Bound[A]): Boolean

    convenience function to make containment tests read better where a isInside b == b containsAll a

  45. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  46. def isSingular: Boolean
  47. def lerp(ratio: Double): A

    type class based interpolator (0 to 1)

    type class based interpolator (0 to 1)

    Definition Classes
    BoundLerp
  48. def log: Bound.Log[A]
  49. def logTicks(n: Int, base: Double = 10)(implicit t: Tickable[A]): Iterable[A]
    Definition Classes
    LerpInv
  50. def map[B](f: (A) => B)(implicit b: Boundable[B]): Bound[B]

    generic function mapping to convert one bound to another type (that is boundable)

  51. def mapsTo[B](that: Bound[B]): QuantitativeBound[A, B]

    alias for mapsTo

  52. val max: A
    Definition Classes
    BoundLerp
  53. def mid: A

    convenience of the mid value

    convenience of the mid value

    Definition Classes
    Lerp
  54. val min: A
    Definition Classes
    BoundLerp
  55. def mobius(x: A): A

    modulus in a wrapping fashion

    modulus in a wrapping fashion

    Definition Classes
    LerpInv
  56. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  57. def noneIf(f: (Bound[A]) => Boolean): Option[Bound[A]]
    Implicit
    This member is added by an implicit conversion from Bound[A] toDrxAny[Bound[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  58. def normal(implicit rand: Rand): A
    Definition Classes
    Lerp
  59. def normalize(xs: Iterable[A]): Iterable[Double]
    Definition Classes
    LerpInv
  60. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  61. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  62. def optionIf(f: (Bound[A]) => Boolean): Option[Bound[A]]

    optionally wrap an object

    optionally wrap an object

    Implicit
    This member is added by an implicit conversion from Bound[A] toDrxAny[Bound[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  63. def out_:(v: A): Boolean
  64. def preApply[B](f: (Bound[A]) => B): B

    a preApply f => f(a)

    a preApply f => f(a)

    Implicit
    This member is added by an implicit conversion from Bound[A] toDrxAny[Bound[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  65. def pulse(period: Time): A
    Definition Classes
    Lerp
  66. def ramp(t: Time)(implicit t0: Date): A
    Definition Classes
    Lerp
  67. def ratioOf(x: A): Double

    reverse lookup while not mathematically sound a return of 0.5 is nice for visuals

    reverse lookup while not mathematically sound a return of 0.5 is nice for visuals

    Definition Classes
    BoundLerpInv
  68. def ratioOfOption(x: A): Option[Double]
  69. def reverse: Bound[A]
  70. def sat(x: A): A

    simple way to lookup and keep within a bound

  71. def satBy(that: Bound[A]): Bound[A]

    produce a new bound that limits the current bound by the second (Note: this is not an intersection because this operation is always defined but is also not associative)

  72. def satOption(x: A): Option[A]

    simple way to lookup and return only if it is in the bound

  73. def scale(gain: Double): Bound[A]

    scale with the pivot origin at min (simply applies the gain to the max value)

  74. def scaleAt(gain: Double, pivot: A): Bound[A]

    convenience function for scaleAtRatio by using the imutable pivot lookup value

  75. def scaleAtRatio(gain: Double, pivot: Double): Bound[A]

    generic scale and translate around an immutable pivot point without inverse lookup

  76. def sideEffect(f: (Bound[A]) => Unit): Bound[A]

    side effect filter

    side effect filter

    Implicit
    This member is added by an implicit conversion from Bound[A] toDrxAny[Bound[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  77. def someIf(f: (Bound[A]) => Boolean): Option[Bound[A]]
    Implicit
    This member is added by an implicit conversion from Bound[A] toDrxAny[Bound[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  78. def start: A

    alias for min

    alias for min

    Definition Classes
    Lerp
  79. def swap: Bound[A]
  80. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  81. def take(n: Int): Iterable[A]
    Definition Classes
    Lerp
  82. val thisAny: Bound[A]
    Implicit
    This member is added by an implicit conversion from Bound[A] toDrxAny[Bound[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  83. def ticks(n: Int)(implicit t: Tickable[A]): Iterable[A]
    Definition Classes
    LerpInv
  84. def ticksOn(path: Segment)(implicit t: Tickable[A]): Iterable[Text]

    auto select tick count based on segment length

    auto select tick count based on segment length

    Definition Classes
    LerpInv
  85. def ticksOn(path: Lerp[Vec], n: Int)(implicit t: Tickable[A]): Iterable[Text]
    Definition Classes
    LerpInv
  86. final def ticksWithFormat(n: Int)(implicit t: Tickable[A], f: Format[A]): Iterable[(A, String)]
    Definition Classes
    LerpInv
  87. def till(maxArg: Bound[A]): Bound[Bound[A]]

    Bound construction since the Range constructor is deprecated

    Bound construction since the Range constructor is deprecated

    Implicit
    This member is added by an implicit conversion from Bound[A] toBoundOps[Bound[A]] performed by method DrxBoundOps in cc.drx.predef.Enrich.This conversion will take place only if an implicit value of type Boundable[Bound[A]] is in scope.
    Definition Classes
    BoundOps
  88. def toBound(implicit b: Boundable[A]): Bound[A]
    Definition Classes
    Lerp
  89. def toString(): String
    Definition Classes
    Bound → AnyRef → Any
  90. def translate(ratio: Double): Bound[A]

    generic scale and translate without inverse lookup

  91. def translateBy(from: A, to: A): Bound[A]

    convenience function to help calculate translation ratios based on the bound values

  92. def uniform(implicit rand: Rand): A
    Definition Classes
    Lerp
  93. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  94. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  95. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  96. def zip[B](xs: Iterable[B]): Iterable[(A, B)]
    Definition Classes
    Lerp
  97. def ∈:(v: A): Boolean
  98. def ∉:(v: A): Boolean

Deprecated Value Members

  1. def ?>(f: (Bound[A]) => Boolean): Option[Bound[A]]

    alias for option if

    alias for option if

    Implicit
    This member is added by an implicit conversion from Bound[A] toDrxAny[Bound[A]] 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

  2. final def apply(ratio: Double): A
    Annotations
    @deprecated
    Deprecated

    (Since version v0.2.15) use lerp instead since bound now extends Lerp, lerp is the entry point and can be mixed in better, (it will help catch overloaded errors that extended the wrong function root function)

  3. def containsNorm(v: A): Boolean
    Annotations
    @deprecated
    Deprecated

    (Since version 0.2.13) the 'normal' contains method should provide this functionality

  4. def from[B](that: Bound[B]): QuantitativeBound[B, A]
    Annotations
    @deprecated
    Deprecated

    (Since version v0.2.00) use (a to b) instead of (b from a) to many verbs

  5. def mean: A
    Definition Classes
    Lerp
    Annotations
    @deprecated
    Deprecated

    (Since version v0.2.15) use mid instead since 0.5 may not be the mean

  6. lazy val norm: Bound[A]

    Boundable has this as an overridable method that may be specific for some special classses

    Boundable has this as an overridable method that may be specific for some special classses

    Annotations
    @deprecated
    Deprecated

    (Since version 0.2.13) try not to use this function, it was to specialized

  7. def steps(N: Int): Seq[A]
    Definition Classes
    Lerp
    Annotations
    @deprecated
    Deprecated

    (Since version v0.2.4) use take(N:Int) for a more scala semantic

  8. def to[B](that: Bound[B]): QuantitativeBound[A, B]
    Annotations
    @deprecated
    Deprecated

    (Since version v0.2.00) use --> insted of the harder to see and similar 'to' in Range()

  9. def |>[B](f: (Bound[A]) => B): B
    Implicit
    This member is added by an implicit conversion from Bound[A] toDrxAny[Bound[A]] 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)

  10. def [B](y: B): (Bound[A], B)
    Implicit
    This member is added by an implicit conversion from Bound[A] toArrowAssoc[Bound[A]] 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.

Inherited from LerpInv[A]

Inherited from Lerp[A]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion richDrxAny fromBound[A] to DrxAny[Bound[A]]

Inherited by implicit conversion DrxBoundOps fromBound[A] to BoundOps[Bound[A]]

Inherited by implicit conversion any2stringadd fromBound[A] to any2stringadd[Bound[A]]

Inherited by implicit conversion StringFormat fromBound[A] to StringFormat[Bound[A]]

Inherited by implicit conversion Ensuring fromBound[A] to Ensuring[Bound[A]]

Inherited by implicit conversion ArrowAssoc fromBound[A] to ArrowAssoc[Bound[A]]

Ungrouped