limit = radius of green circle
What about the radius of the blue circle? I guess I could just take a value of the green circle and check for that instead of 1.
function weHateVectorDist(%pos1, %pos2, %circle){ %raw = mClampF(1 - %circle / vectorDist(%pos1, %pos2), 0, 1) - 1; return getSubStr(%raw, 1, strLen(%raw));}