class Bound[A] extends LerpInv[A]
- Alphabetic
- By Inheritance
- Bound
- LerpInv
- Lerp
- AnyRef
- Any
- by richDrxAny
- by DrxBoundOps
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def %(ratio: Double): A
alias for
lerp
orapply
- def *(gain: Double): Bound[A]
operator form to scale from the middle
scaleAtRatio(gain,0.5)
- def +(other: String): String
- def ++(that: Bound[A]): Bound[A]
merge(grow to a union) bound (useful for parallel processing)
- def --(that: Bound[A]): Option[Bound[A]]
- 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)
- def -->[B](range: Lerp[B]): Quantitative[A, B]
- Definition Classes
- LerpInv
- def -->[B](range: LerpInv[B]): QuantitativeInv[A, B]
- Definition Classes
- LerpInv
- def ->[B](y: B): (Bound[A], B)
- def /(gain: Double): Bound[A]
- def <(v: A): Boolean
- def ==(that: Bound[A]): Boolean
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def >(v: A): Boolean
- 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
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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)
- def bisectOption(f: (A) => Boolean, N: Int = 64): Option[A]
- 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
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def contains(v: A): Boolean
- def containsAll(that: Bound[A]): Boolean
- def containsNot(v: A): Boolean
- 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
- def dist: Double
- 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
- def end: A
alias for max
alias for max
- Definition Classes
- Lerp
- def ensuring(cond: (Bound[A]) => Boolean, msg: => Any): Bound[A]
- def ensuring(cond: (Bound[A]) => Boolean): Bound[A]
- def ensuring(cond: Boolean, msg: => Any): Bound[A]
- def ensuring(cond: Boolean): Bound[A]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(that: Any): Boolean
- Definition Classes
- Bound → AnyRef → Any
- def extend(n: Int)(implicit t: Tickable[A]): Bound[A]
- 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()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def in_:(b: Bound[A]): Boolean
convenience function to make containment tests read better with right associativity
- def in_:(v: A): Boolean
- def isInside(b: Bound[A]): Boolean
convenience function to make containment tests read better where
a isInside b
==b containsAll a
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isSingular: Boolean
- def lerp(ratio: Double): A
type class based interpolator (0 to 1)
- def log: Bound.Log[A]
- def logTicks(n: Int, base: Double = 10)(implicit t: Tickable[A]): Iterable[A]
- Definition Classes
- LerpInv
- 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)
- def mapsTo[B](that: Bound[B]): QuantitativeBound[A, B]
alias for
mapsTo
- val max: A
- def mid: A
convenience of the mid value
convenience of the mid value
- Definition Classes
- Lerp
- val min: A
- def mobius(x: A): A
modulus in a wrapping fashion
modulus in a wrapping fashion
- Definition Classes
- LerpInv
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- 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
- def normal(implicit rand: Rand): A
- Definition Classes
- Lerp
- def normalize(xs: Iterable[A]): Iterable[Double]
- Definition Classes
- LerpInv
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- 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
- def out_:(v: A): Boolean
- 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
- def pulse(period: Time): A
- Definition Classes
- Lerp
- def ramp(t: Time)(implicit t0: Date): A
- Definition Classes
- Lerp
- def ratioOf(x: A): Double
reverse lookup while not mathematically sound a return of 0.5 is nice for visuals
- def ratioOfOption(x: A): Option[Double]
- def reverse: Bound[A]
- def sat(x: A): A
simple way to lookup and keep within a bound
- 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)
- def satOption(x: A): Option[A]
simple way to lookup and return only if it is in the bound
- def scale(gain: Double): Bound[A]
scale with the pivot origin at min (simply applies the gain to the max value)
- def scaleAt(gain: Double, pivot: A): Bound[A]
convenience function for scaleAtRatio by using the imutable pivot lookup value
- def scaleAtRatio(gain: Double, pivot: Double): Bound[A]
generic scale and translate around an immutable pivot point without inverse lookup
- 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
- 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
- def start: A
alias for min
alias for min
- Definition Classes
- Lerp
- def swap: Bound[A]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def take(n: Int): Iterable[A]
- Definition Classes
- Lerp
- 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
- def ticks(n: Int)(implicit t: Tickable[A]): Iterable[A]
- Definition Classes
- LerpInv
- 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
- def ticksOn(path: Lerp[Vec], n: Int)(implicit t: Tickable[A]): Iterable[Text]
- Definition Classes
- LerpInv
- final def ticksWithFormat(n: Int)(implicit t: Tickable[A], f: Format[A]): Iterable[(A, String)]
- Definition Classes
- LerpInv
- def till(maxArg: Bound[A]): Bound[Bound[A]]
Bound construction since the Range constructor is deprecated
Bound construction since the Range constructor is deprecated
- def toBound(implicit b: Boundable[A]): Bound[A]
- Definition Classes
- Lerp
- def toString(): String
- Definition Classes
- Bound → AnyRef → Any
- def translate(ratio: Double): Bound[A]
generic scale and translate without inverse lookup
- def translateBy(from: A, to: A): Bound[A]
convenience function to help calculate translation ratios based on the bound values
- def uniform(implicit rand: Rand): A
- Definition Classes
- Lerp
- 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()
- def zip[B](xs: Iterable[B]): Iterable[(A, B)]
- Definition Classes
- Lerp
- def ∈:(v: A): Boolean
- def ∉:(v: A): Boolean
Deprecated Value Members
- 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
- 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)
- def containsNorm(v: A): Boolean
- Annotations
- @deprecated
- Deprecated
(Since version 0.2.13) the 'normal'
contains
method should provide this functionality
- 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
- 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
- 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
- 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
- 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()
- 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)
- 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.