Represents a linear equation (y = mx + b).
Creates a default constructed LinearEquation object. slope = 1.0, offset = 0.0, unit = unit_none
LinearEquation( |
| ) |
Creates a LinearEquation object.
slope float | The slope of the linear equation. |
offset float | The offset of the linear equation |
The slope of the linear equation (m in y=mx+b).
The offset of the linear equation (b in y=mx+b).
void slope( |
| ) |
Sets the of slope the linear equation.
slope float | The slope to set. |
Gets the slope of the linear equation.
The slope of the linear equation.
void offset( |
| ) |
Sets the offset of the linear equation.
offset float | The offset to set. |
Gets the offset of the linear equation.
The offset of the linear equation.