ScaleNum<N extends num> class

Version of Scale but for num values.

Inheritance

Constructors

ScaleNum(num minimum, num maximum)

Properties

hashCode int
The hash code for this object.
no setterinherited
length → N
The length of the scale: maximum - minimum.
no setterinherited
maximum → N
The maximum value of the scale.
finalinherited
maximumNice → N
Same as maximum but as a nice number.
no setteroverride
minimum → N
The minimum value of the scale.
finalinherited
minimumNice → N
Same as minimum but as a nice number.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clip(N value) → N
Clips value in this scale.
override
clipList(Iterable<N> list) List<N>
Clips a list.
inherited
computeLength(N maximum, N minimum) → N
Computes the length: maximum - minimum.
override
denormalize(double valueNormalized) → N
Denormalizes a valueNormalized from range 0..1 to this scale.
override
denormalizeList(Iterable<double> list) List<N>
Denormalizes a list.
inherited
niceTolerance() int
normalize(num value) double
Normalizes a value to range 0..1.
override
normalizeList(Iterable<N> list) List<double>
Normalizes a list.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toNum(N value) num?
Converts a value to num.
inherited
toString() String
A string representation of this object.
inherited
toValue(Object? value) → N
Converts a value to T.
inherited
valuesType() Type
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

from<N extends num>(Iterable<N>? list) ScaleNum<num>?
override