LinearConverter class
Represents a linear converter
A linear converter is in form f(x) = ax + b
- Inheritance
-
- Object
- UnitConverter
- LinearConverter
- Implementers
Constructors
- LinearConverter(num a, num b)
Properties
- a → num
-
"a" constant
final
- b → num
-
"b" constant
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inverted → UnitConverter
-
The inverse converter.
no setteroverride
- isIdentity → bool
-
Unit has scale info?
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
num value) → UnitConverter -
Composes this converter with an additive offset.
inherited
-
apply(
num x) → num -
Converts
valueto the reference unit.override -
composeWith(
UnitConverter other) → UnitConverter -
Composes this converter with
other.inherited -
divide(
num value) → UnitConverter -
Composes this converter with the inverse of
value.inherited -
multiply(
num value) → UnitConverter -
Composes this converter with a multiplicative factor.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pow(
int exp) → UnitConverter -
Raises this converter to
exp.override -
toString(
) → String -
A string representation of this object.
inherited
-
undo(
num value) → num -
Applies the inverse converter to
value.inherited
Operators
-
operator *(
UnitConverter other) → UnitConverter -
Alias for composeWith.
inherited
-
operator /(
UnitConverter other) → UnitConverter -
Alias for composition using the inverse of
other.inherited -
operator ==(
Object other) → bool -
The equality operator.
inherited