📄 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 + -