?? f_xy.m
字號:
%% The subfunction is employed to solve the coordinates of moving target;
%% 2005-10-1;MDY;
function [x,y]=f_xy(bite1,bite2,x1,y1,x2,y2)
% % IP: 193 196 198;
% bite1=90+bite1;
% bite2=90+bite2;
%% IP: 190 195 197;
bite1=90-bite1;
bite2=90-bite2;
% bite1=90+bite1;
% bite2=90-bite2;
% % bite1=90-bite1;
% % bite2=90+bite2;
K1=tan(bite1*pi/180);
K2=tan(bite2*pi/180);
if K1==K2
x=[];y=[];
else
x=((y2-y1)+(K1*x1-K2*x2))/(K1-K2);
y=y1+K1*(x-x1);
end
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -