Represents a single term in an expression. This term contains a single indeterminate and has degree 1.
- Inheritance
- Object
- EquationMember
- Term
Constructors
Properties
- coefficient → double
-
The coefficient of this term. Before addition of the Constraint to the solver, terms with a zero coefficient are dropped.
read-only - isConstant → bool
-
read-only
- value → double
-
read-only
- variable → Variable
-
The Variable (or indeterminate) portion of this term. Variables are usually tied to an opaque object (via its
context
property). On a Solver flush, these context objects of updated variables are returned by the solver. An external entity can then choose to interpret these values in what manner it sees fit.read-only - hashCode → int
-
Get a hash code for this object.
read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator *(
EquationMember m) → Expression -
Creates a Expression by multiplying this member with the argument. Both members may need to be hoisted to expressions themselves before this can occur.
inherited -
operator +(
EquationMember m) → Expression -
Creates a Expression by adding this member with the argument. Both members may need to be hoisted to expressions themselves before this can occur.
inherited -
operator -(
EquationMember m) → Expression -
Creates a Expression by subtracting the argument from this member. Both members may need to be hoisted to expressions themselves before this can occur.
inherited -
operator /(
EquationMember m) → Expression -
Creates a Expression by dividing this member by the argument. Both members may need to be hoisted to expressions themselves before this can occur.
inherited -
operator <=(
EquationMember m) → Constraint -
Creates a Constraint by using this member as the left hand side expression and the argument as the right hand side Expression of a Constraint with a Relation.lessThanOrEqualTo relationship between the two.
inherited -
operator ==(
other) → bool -
The equality operator.
inherited -
operator >=(
EquationMember m) → Constraint -
Creates a Constraint by using this member as the left hand side expression and the argument as the right hand side Expression of a Constraint with a Relation.greaterThanOrEqualTo relationship between the two.
inherited
Methods
-
asExpression(
) → Expression -
The representation of this member after it is hoisted to be an expression.
-
toString(
) → String -
Returns a string representation of this object.
-
equals(
EquationMember m) → Constraint -
Creates a Constraint by using this member as the left hand side expression and the argument as the right hand side Expression of a Constraint with a Relation.equalTo relationship between the two.
inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited