Distance between A and B</span>
0131         L = norm(B-A);
0132         Typ = sign(B(2)-A(2));
0133         wrapside=[];
0134     <span class="keyword">end</span>
0135 <span class="keyword">elseif</span> Wrap.type==<span class="string">'S'</span>
0136     <span class="keyword">if</span> <a href="../../Functions/MuscleForces/Wrapping/Intersect_line_sphere.html" class="code" title="function [bool] = Intersect_line_sphere(P1, P2, R)">Intersect_line_sphere</a>(Aw, Bw, Wrap.R) || EnforcedWrap
0137         [L,~,