亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? inside.m

?? 地震中常用的一些偏移程序
?? M
字號:
function result=inside(xpt,ypt,xpoly,ypoly)

% result = inside(xpt,ypt,xpoly,ypoly)
%
% function returns 1 if (xpt,ypt) is inside the polygon described by
% xpoly and ypoly and 0 otherwise
%
%  xpt = x coordinates of the test points. May be a scalar, vector or matrix.
%  ypt = y coordinates of the test pts
%  xpoly = vector of the x coordinates of the polygon vertices
%          The last vertex is tested against the first and is discarded
%          if it is identical
% ypoly =  vector of the y coordinates of the polygon vertices
%
% result =  vector of boolean values the same size as xpt(:). Points inside
%           the polygon may be addressed as xpt(result) and ypt(result) while
%           those outside are xpt(~result) and ypt(~result)
%
%  Transcribed from FORTAN by G.F. Margrave, October 1993
%  FORTRAN written by T.N. Bishop, May 1989
%  Algorithm after B.J. Larkin, Computer & Geosciences, Vol 14, pp1-14, 1988
%  Original algorithm due to K.R. Anderson, Mathematical Geology, Vol 8, no 1,
%  1976, pp 105-106
%
% NOTE: It is illegal for you to use this software for a purpose other
% than non-profit education or research UNLESS you are employed by a CREWES
% Project sponsor. By using this software, you are agreeing to the terms
% detailed in this software's Matlab source file.
 
% BEGIN TERMS OF USE LICENSE
%
% This SOFTWARE is maintained by the CREWES Project at the Department
% of Geology and Geophysics of the University of Calgary, Calgary,
% Alberta, Canada.  The copyright and ownership is jointly held by 
% its author (identified above) and the CREWES Project.  The CREWES 
% project may be contacted via email at:  crewesinfo@crewes.org
% 
% The term 'SOFTWARE' refers to the Matlab source code, translations to
% any other computer language, or object code
%
% Terms of use of this SOFTWARE
%
% 1) Use of this SOFTWARE by any for-profit commercial organization is
%    expressly forbidden unless said organization is a CREWES Project
%    Sponsor.
%
% 2) A CREWES Project sponsor may use this SOFTWARE under the terms of the 
%    CREWES Project Sponsorship agreement.
%
% 3) A student or employee of a non-profit educational institution may 
%    use this SOFTWARE subject to the following terms and conditions:
%    - this SOFTWARE is for teaching or research purposes only.
%    - this SOFTWARE may be distributed to other students or researchers 
%      provided that these license terms are included.
%    - reselling the SOFTWARE, or including it or any portion of it, in any
%      software that will be resold is expressly forbidden.
%    - transfering the SOFTWARE in any form to a commercial firm or any 
%      other for-profit organization is expressly forbidden.
%
% END TERMS OF USE LICENSE


	[m,n]=size(xpoly);
	if( m~= 1) xpoly = xpoly'; end % make sure we have row vectors
	[m,n]=size(ypoly);
	if( m~= 1) ypoly = ypoly'; end % make sure we have row vectors

% determine the number of vertices

	nvert = length(xpoly);
	if( nvert ~= length(ypoly) )
		error( 'xpoly and ypoly must be the same length' );
	end

% check for last pt == first pt
	if( (xpoly(1)==xpoly(nvert))&(ypoly(1)==ypoly(nvert)))
		xpoly = xpoly(1:nvert-1);
		ypoly = ypoly(1:nvert-1);
		nvert=nvert-1;
	end 

	if( nvert < 3 )
		error( 'polygon must have more than 2 vertices');
	end

	
% count number of polygon sides to the right of the point

	xprev = [xpoly(nvert) xpoly(1:nvert-1)];
	yprev = [ypoly(nvert) ypoly(1:nvert-1)];

	xpt=xpt(:);ypt=ypt(:);
	result=zeros(size(xpt)); % guilty until proven innocent
	
	for n=1:length(result)

	for k=1:nvert
		test1 = ypt(n) > yprev(k);
		test2 = ypt(n) <= ypoly(k);
		if( test1 == test2 )
			grad = (xpoly(k)-xprev(k))/(ypoly(k)-yprev(k));
			xint = xprev(k) - grad*yprev(k);
			xcut = grad*ypt(n)+xint;
			if( xpt(n) < xcut ) result(n) = ~result(n); end
		end
	end

	end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品一区二区三区精华液| 97久久精品人人做人人爽50路 | 日本欧美肥老太交大片| 中文字幕亚洲成人| 国产精品久久毛片| 成人免费在线播放视频| 亚洲免费在线视频| 亚洲免费av高清| 天天色天天操综合| 三级一区在线视频先锋| 日本怡春院一区二区| 黄一区二区三区| 成人免费看的视频| 色视频欧美一区二区三区| 在线观看亚洲成人| 日韩精品专区在线影院重磅| 久久久三级国产网站| 亚洲丝袜另类动漫二区| 午夜久久久影院| 国产一区二区看久久| 色综合久久天天综合网| 3d动漫精品啪啪一区二区竹菊| 精品不卡在线视频| 亚洲欧洲av在线| 青青草国产成人99久久| 国产成人在线观看| 色国产精品一区在线观看| 欧美一区二区播放| 亚洲欧洲三级电影| 日韩精品国产精品| 成人h版在线观看| 制服丝袜中文字幕一区| 国产精品私人自拍| 人人爽香蕉精品| 9久草视频在线视频精品| 欧美日韩一级视频| 国产精品网站导航| 久久精品国产秦先生| 99re这里只有精品首页| 日韩视频不卡中文| 国产精品夫妻自拍| 精品中文av资源站在线观看| 波多野结衣在线aⅴ中文字幕不卡| 91九色02白丝porn| 久久综合99re88久久爱| 亚洲成人自拍网| 成人动漫精品一区二区| 精品国产1区2区3区| 一区二区国产视频| av成人免费在线| 国产欧美一区二区在线| 精品一区二区三区蜜桃| 欧美性大战久久| 亚洲男人天堂一区| 国产成人av一区| 久久中文字幕电影| 老司机免费视频一区二区| 91久久线看在观草草青青| 国产精品麻豆欧美日韩ww| 国产自产视频一区二区三区| 在线成人午夜影院| 亚洲国产一区二区a毛片| 99视频一区二区| 欧美国产成人精品| 国产白丝精品91爽爽久久| 精品88久久久久88久久久| 日韩不卡在线观看日韩不卡视频| 91啦中文在线观看| 自拍偷拍国产精品| 91在线一区二区| 国产精品成人免费| 99国产欧美另类久久久精品| 中文字幕成人网| 91丨porny丨最新| 中文字幕一区二区三区视频 | 亚洲一线二线三线久久久| caoporm超碰国产精品| 日本一区二区三区在线不卡| 成人午夜看片网址| 亚洲欧洲日韩av| 欧美性受极品xxxx喷水| 无码av中文一区二区三区桃花岛| 欧美疯狂做受xxxx富婆| 日韩高清不卡在线| 久久久亚洲精华液精华液精华液| 国产大陆亚洲精品国产| 国产精品久久久久久久久图文区| av一区二区久久| 亚洲精品国产品国语在线app| 日本高清无吗v一区| 日韩极品在线观看| 欧美mv和日韩mv的网站| 国产成人午夜高潮毛片| 亚洲精品免费看| 欧美肥胖老妇做爰| 国产一区二区不卡在线| 国产精品美女一区二区三区| 欧美性一二三区| 国产毛片一区二区| 亚洲精品免费视频| 精品欧美黑人一区二区三区| 成人国产亚洲欧美成人综合网| 1区2区3区欧美| 欧美一区二视频| 成人av在线播放网址| 亚洲午夜在线电影| 久久精品男人天堂av| 日本韩国欧美一区| 国产一区二区剧情av在线| 亚洲精品videosex极品| 欧美一区二区三区免费视频| 风间由美中文字幕在线看视频国产欧美| 国产精品免费丝袜| 日韩欧美123| 色88888久久久久久影院野外| 视频一区视频二区中文| 国产色婷婷亚洲99精品小说| 欧美性高清videossexo| 国产精品资源站在线| 亚洲3atv精品一区二区三区| 日本一二三四高清不卡| 欧美一区二区在线视频| 日本高清不卡视频| 国产精品亚洲а∨天堂免在线| 亚洲成人7777| 成人免费一区二区三区视频 | 色av成人天堂桃色av| 精品影视av免费| 香蕉av福利精品导航| 国产精品久久毛片a| 久久精品综合网| 欧美一区二区三区在线电影 | 51精品久久久久久久蜜臀| av日韩在线网站| 国产精品一区不卡| 蜜桃视频免费观看一区| 肉色丝袜一区二区| 亚洲免费av在线| 亚洲色图欧美偷拍| 国产精品成人网| 一区在线中文字幕| 国产精品午夜免费| 国产精品人人做人人爽人人添| 久久夜色精品国产欧美乱极品| 欧美一区二区三区四区五区| 精品视频在线看| 欧美中文字幕一区二区三区 | 国产黄色91视频| 国产在线国偷精品产拍免费yy| 日韩av不卡在线观看| 午夜精品国产更新| 奇米影视在线99精品| 日韩avvvv在线播放| 日韩精品视频网站| 蜜臀99久久精品久久久久久软件| 日韩国产精品久久| 美女脱光内衣内裤视频久久网站| 麻豆专区一区二区三区四区五区| 免费在线观看精品| 国内外成人在线| 国产成人在线看| 91免费观看视频| 在线一区二区三区四区五区| 欧洲色大大久久| 欧美电影在线免费观看| 欧美一级精品在线| 久久久久久日产精品| 国产精品久久网站| 午夜视频在线观看一区| 免费看欧美美女黄的网站| 国产伦精一区二区三区| 99精品偷自拍| 欧美精三区欧美精三区| 欧美sm美女调教| 最近日韩中文字幕| 婷婷国产v国产偷v亚洲高清| 韩国女主播一区| fc2成人免费人成在线观看播放| 欧美日韩一级视频| 精品国产1区二区| 1000精品久久久久久久久| 婷婷综合另类小说色区| 国产麻豆精品一区二区| 在线免费观看视频一区| 久久青草欧美一区二区三区| 亚洲天堂av一区| 激情综合色播五月| 99久久精品国产导航| 日韩精品一区二区三区在线观看| 国产精品人人做人人爽人人添 | 日韩免费在线观看| 国产精品传媒在线| 久久成人av少妇免费| 91久久国产最好的精华液| 精品国产91乱码一区二区三区| 亚洲精品国产精品乱码不99| 国产揄拍国内精品对白| 欧美精品一级二级三级| 国产精品人妖ts系列视频| 蜜臀久久99精品久久久久久9|