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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? geom2d.h

?? 關(guān)于限制性四叉樹實(shí)現(xiàn)算法的
?? H
字號(hào):
/********************************************************************************* geom2d.h: an include file containing class definitions and inline ** functions related to 2D geometrical primitives: vectors/points and lines.**** Copyright (C) 1995 by Dani Lischinski **** This program is free software; you can redistribute it and/or modify** it under the terms of the GNU General Public License as published by** the Free Software Foundation; either version 2 of the License, or** (at your option) any later version.**** This program is distributed in the hope that it will be useful,** but WITHOUT ANY WARRANTY; without even the implied warranty of** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the** GNU General Public License for more details.**** You should have received a copy of the GNU General Public License** along with this program; if not, write to the Free Software** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.********************************************************************************/#ifndef GEOM2D_H#define GEOM2D_H#include <math.h>#include <stdlib.h>#include <iostream.h>#include "common.h"#define EPS 1e-6#define X 0#define Y 1#define Z 2typedef Lreal Real;class Vector2d {	Real x, y;public:	Vector2d()                          { x = 0; y = 0; }	Vector2d(Real a, Real b)            { x = a; y = b; }	Vector2d(const Vector2d &v)         { *this = v; }	Real& operator[](int i)             { return ((Real *)this)[i]; }	const Real& operator[](int i) const { return ((Real *)this)[i]; }	Real norm() const;	Real normalize();	Boolean operator==(const Vector2d&) const;	Vector2d operator+(const Vector2d&) const;	Vector2d operator-(const Vector2d&) const;	Real     operator|(const Vector2d&) const;	friend Vector2d operator*(Real, const Vector2d&);	friend Vector2d operator/(const Vector2d&, Real);	friend Real dot(const Vector2d&, const Vector2d&);	friend istream& operator>>(istream&, Vector2d&);	friend ostream& operator<<(ostream&, const Vector2d&);};typedef Vector2d Point2d;class Line {public:	Line()	{}	Line(const Point2d&, const Point2d&);	void set(const Point2d&, const Point2d&);	Real eval(const Point2d&) const;	int classify(const Point2d&) const;	Point2d intersect(const Point2d&, const Point2d&) const;private:	Real a, b, c;};// Vector2d:inline Real Vector2d::norm() const{	return sqrt(x * x + y * y);}inline Real Vector2d::normalize(){	Real len = norm();	if (len == 0.0)		cerr << "Vector2d::normalize: Division by 0\n";	else {		x /= len;		y /= len;	}	return len;}inline Vector2d Vector2d::operator+(const Vector2d& v) const{	return Vector2d(x + v.x, y + v.y);}inline Vector2d Vector2d::operator-(const Vector2d& v) const{	return Vector2d(x - v.x, y - v.y);}inline Boolean Vector2d::operator==(const Vector2d& v) const{	return (*this - v).norm() <= EPS;}inline Real Vector2d::operator|(const Vector2d& v) const// dot product (cannot overload the . operator){	return x * v.x + y * v.y;}inline Vector2d operator*(Real c, const Vector2d& v){	return Vector2d(c * v.x, c * v.y);}inline Vector2d operator/(const Vector2d& v, Real c){	return Vector2d(v.x / c, v.y / c);}inline Real dot(const Vector2d& u, const Vector2d& v)// another dot product{        return u.x * v.x + u.y * v.y;}inline ostream& operator<<(ostream& os, const Vector2d& v){	os << '(' << v.x << ", " << v.y << ')';	return os;}inline istream& operator>>(istream& is, Vector2d& v){	is >> v.x >> v.y;	return is;}// Line:inline Line::Line(const Point2d& p, const Point2d& q)// Computes the normalized line equation through the points p and q.{	Vector2d t = q - p;	Real len = t.norm();	a =   t[Y] / len;	b = - t[X] / len;	// c = -(a*p[X] + b*p[Y]);	// less efficient, but more robust -- seth.	c = -0.5 * ((a*p[X] + b*p[Y]) + (a*q[X] + b*q[Y]));}inline void Line::set(const Point2d& p, const Point2d& q){	*this = Line(p, q);}inline Real Line::eval(const Point2d& p) const// Plugs point p into the line equation.{	return (a * p[X] + b* p[Y] + c);}inline Point2d Line::intersect(const Point2d& p1, const Point2d& p2) const// Returns the intersection of the line with the segment (p1,p2){        // assumes that segment (p1,p2) crosses the line        Vector2d d = p2 - p1;        Real t = - eval(p1) / (a*d[X] + b*d[Y]);        return (p1 + t*d);}inline int Line::classify(const Point2d& p) const// Returns -1, 0, or 1, if p is to the left of, on,// or right of the line, respectively.{	Real d = eval(p);	return (d < -EPS) ? -1 : (d > EPS ? 1 : 0);}inline Boolean operator==(const Point2d& point, const Line& line)// Returns TRUE if point is on the line (actually, on the EPS-slab// around the line).{	Real tmp = line.eval(point);	return(ABS(tmp) <= EPS);}inline Boolean operator<(const Point2d& point, const Line& line)// Returns TRUE if point is to the left of the line (left to// the EPS-slab around the line).{	return (line.eval(point) < -EPS);}#endif

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕日韩一区二区| 中文字幕欧美激情| 粉嫩欧美一区二区三区高清影视| 自拍偷拍国产精品| 久久尤物电影视频在线观看| 色天天综合久久久久综合片| 精品无人码麻豆乱码1区2区| 亚洲一区自拍偷拍| 国产精品伦理在线| xnxx国产精品| 欧美精品高清视频| 99精品视频一区二区三区| 久久精品久久99精品久久| 一区二区中文字幕在线| 亚洲精品在线电影| 欧美日韩大陆一区二区| 91同城在线观看| 国产精品1024久久| 久久99精品久久久久久| 日韩精品乱码av一区二区| 亚洲欧美二区三区| 欧美国产精品一区二区| 精品国产一二三区| 欧美一区二区三区影视| 在线亚洲+欧美+日本专区| 成人自拍视频在线观看| 国产真实乱对白精彩久久| 青青草国产成人av片免费| 亚洲小说欧美激情另类| 亚洲激情校园春色| 亚洲视频香蕉人妖| 中文字幕一区二区视频| 亚洲国产精品av| 久久久精品蜜桃| 久久久噜噜噜久久人人看| 精品国产百合女同互慰| 欧美大黄免费观看| 欧美一区二区三区在| 91麻豆精品国产91久久久更新时间| 色av一区二区| 精品国产3级a| 久久综合丝袜日本网| 精品剧情在线观看| 欧美大片在线观看| 久久婷婷国产综合国色天香| 精品久久久久99| 精品国产第一区二区三区观看体验| 日韩精品一区二| 久久久五月婷婷| 国产欧美日韩精品一区| 国产精品―色哟哟| 亚洲男人的天堂网| 亚洲v日本v欧美v久久精品| 亚洲福利国产精品| 日韩影视精彩在线| 精品中文字幕一区二区| 国产精品一线二线三线精华| 粉嫩嫩av羞羞动漫久久久| 北条麻妃国产九九精品视频| 91免费观看视频| 欧美日韩国产首页在线观看| 欧美一区二区三区不卡| 26uuu亚洲| 国产精品久久777777| 亚洲综合在线电影| 免费人成精品欧美精品| 国产精品一品二品| 色综合久久综合| 欧美精品黑人性xxxx| 精品国产电影一区二区| 综合久久久久综合| 日韩激情av在线| 国产风韵犹存在线视精品| 99国产欧美另类久久久精品| 欧美日韩高清在线| 久久久久久久久久久电影| 亚洲日本免费电影| 免费在线观看日韩欧美| 成人黄色电影在线| 欧美日韩三级视频| 国产日本一区二区| 亚洲综合丝袜美腿| 黑人巨大精品欧美一区| 色八戒一区二区三区| 日韩欧美电影一区| 亚洲欧美色综合| 老司机免费视频一区二区三区| 成人短视频下载| 91麻豆精品国产无毒不卡在线观看| 国产视频911| 天天av天天翘天天综合网色鬼国产| 韩国成人福利片在线播放| 色综合久久88色综合天天免费| 日韩欧美国产精品一区| 亚洲男人天堂av| 国产一区二区三区四| 欧美无砖专区一中文字| 久久久久久久久久电影| 亚洲国产成人av网| 国产成人免费视| 欧美一二三区在线观看| 亚洲女人小视频在线观看| 久久激五月天综合精品| 日本电影亚洲天堂一区| 国产亲近乱来精品视频| 日日欢夜夜爽一区| 色综合中文字幕国产| 91精品国产综合久久国产大片| 亚洲欧美在线观看| 精品综合久久久久久8888| 欧美日韩三级一区二区| 中文字幕一区二区三区四区不卡| 久久66热偷产精品| 在线播放日韩导航| 一二三区精品福利视频| 99热精品国产| 国产精品嫩草99a| 国产美女视频91| 日韩美女天天操| 免费观看久久久4p| 欧美猛男gaygay网站| 亚洲制服欧美中文字幕中文字幕| 国产成人啪免费观看软件| 欧美电影免费观看完整版| 日韩精品午夜视频| 欧美人成免费网站| 午夜精品爽啪视频| 欧美日韩三级视频| 亚洲成人免费影院| 精品1区2区3区| 亚洲午夜久久久久久久久电影院 | 亚洲va欧美va国产va天堂影院| 成人一级视频在线观看| 国产欧美日韩一区二区三区在线观看| 精品一区二区日韩| 精品国产髙清在线看国产毛片| 日本不卡高清视频| 欧美一卡二卡三卡| 麻豆精品久久久| 欧美mv日韩mv亚洲| 国产精品一区一区三区| 久久在线免费观看| 粉嫩绯色av一区二区在线观看| 国产午夜亚洲精品不卡| 成人精品亚洲人成在线| 国产精品国模大尺度视频| 99精品黄色片免费大全| 亚洲三级在线观看| 欧美在线观看一二区| 亚洲第一电影网| 91精品国产综合久久香蕉的特点 | 99riav一区二区三区| 中文字幕一区二区三区在线不卡| 99久久精品国产导航| 亚洲一区视频在线| 制服丝袜日韩国产| 狠狠色综合色综合网络| 国产日产欧产精品推荐色| 99国产精品久久久久| 亚洲午夜久久久久中文字幕久| 56国语精品自产拍在线观看| 久久99精品久久只有精品| 国产亚洲欧洲一区高清在线观看| 波多野结衣欧美| 亚洲高清中文字幕| 欧美大黄免费观看| 99久久99久久综合| 亚洲成人高清在线| 久久久久久麻豆| 色哟哟国产精品免费观看| 午夜精品久久久久久久99樱桃| 午夜不卡av在线| 精品国产伦理网| 91视频在线看| 美国毛片一区二区三区| 国产精品美女久久久久高潮| 在线精品视频小说1| 久久精品国产精品青草| 亚洲欧美影音先锋| 91精品国产高清一区二区三区蜜臀| 国产成人一区二区精品非洲| 一区二区三区四区中文字幕| 日韩亚洲欧美综合| 99国产精品99久久久久久| 免费观看30秒视频久久| 国产精品久久久久一区| 欧美一级黄色片| 91亚洲国产成人精品一区二三| 青青草国产精品97视觉盛宴| ㊣最新国产の精品bt伙计久久| 欧美性一二三区| 国产一区二区三区四区五区美女| 亚洲老妇xxxxxx| 国产午夜精品一区二区| 欧美日韩一区二区在线观看| 国产激情一区二区三区四区| 视频一区视频二区在线观看| 国产精品久久久久久久午夜片 | 欧美丝袜自拍制服另类| 国产一区二区福利|