struct
Cassowary::Term
- Cassowary::Term
- Struct
- Value
- Object
Overview
A variable multiplied by a coefficient.
Included Modules
Defined in:
cassowary/term.crConstructors
Instance Method Summary
- #coefficient : Float64
-
#to_expression : Expression
Returns an expression holding only this term.
-
#to_s(io : IO) : Nil
Writes the term in readable form, such as
2 * xor-x. -
#value : Float64
Returns the coefficient times the variable's current value.
- #variable : Variable
Instance methods inherited from module Cassowary::Operand
!=(other : Operand | Number) : NoReturn
!=,
*(other : Number) : Expression
*,
+(other : Operand) : Expression+(other : Number) : Expression +, -(other : Operand) : Expression
-(other : Number) : Expression
- : Expression -, /(other : Number) : Expression /, <=(other : Operand | Number) : Constraint <=, ==(other : Operand | Number) : Constraint ==, >=(other : Operand | Number) : Constraint >=, to_expression : Expression to_expression