blob: 24e6eabab9be87e868064873dff902b7bbcb13c0 [file] [log] [blame]
ClLinearExpression opBinary(string op) (double constant)
{
static if (op == "+")
return new ClLinearExpression(this, 1, constant);
else
static if (op == "-")
return new ClLinearExpression(this, 1, -constant);
else
static if (op == "*")
return new ClLinearExpression(this, constant, 0);
else
static if (op == "/")
return new ClLinearExpression(this, 1.0 / constant, 0);
}