fix: distance from r is relative to B not A