?? leftof.m
字號:
function y=leftof(p,a,b)%function y=leftof(p,a,b)%Return 1 if the point p is to the left of the line ab.%For a n x 2 list of points p, return a vector of results.%% Author: Richard Schreier, Oregon State University. <schreier@ece.orst.edu>%Translate to the origin and do the checkp = p - a(ones(1,size(p,1)),:);b = b-a;y= b(1)*p(:,2) > b(2)*p(:,1);
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -