Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 圆线碰撞检测
谁能建议如何找到线和圆的交点。
theta=0:.01:2*pi; x1=4*cos(theta)+4; y1=4*sin(theta)+4; x=[0 1 3 5 8] y=[0 1 1 3 3] for i=2:length(x) s(i)=(y(i)-y(i-1))/(x(i)-x(i-1)); end s inter=y plot([x],[y],x1,y1,'-') axis([0 10 0 10])