The paper in question is XPBD (http://mmacklin.com/xpbd.pdf)
Equation (26) in the paper relates to adding damping to the constraint.
It contains a term that I do not understand how to evaluate - the grad C(xi - x^n) in the numerator.
For example, with a distance constraint we have grad C(a, b) = (a - b) / |a - b|
This takes two positions, and is itself a vector function, but the equation in question (26) evaluates to a scalar.
What might they mean by this term as it relates to a distance constraint?