blob: 0eb3a1a81c3de4b25b438ad83ce3cf8f079cbf8c [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);
}