- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
计算几何的常用算法(Common algorithms for computational geometry)
计算几何的常用算法(Common algorithms for computational geometry)
Common algorithms for computational geometry
1. vector subtraction
Let the two-dimensional vector P = (x1, Y1), Q = (X2, Y2)
Vector subtraction is defined as: P - Q = (x1 - X2, Y1 - Y2)
Obviously there is a property of P - Q = - - (Q - P)
If not explained, all of the following points are treated as vectors, and the subtraction of two points is vector subtraction;
2. vector cross product
Let vector P = (x1, Y1), Q = (X2, Y2)
The vector cross product is defined as: P * Q = x1*y2 - x2*y1 is a scalar quantity
Obviously there is a property of P * Q = - (Q * P) P * (- Q) = - (P * Q)
If not specified, all of the following points are treated as vectors, and the multiplication of points is regarded as vector cross product;
The important properties of the product:
if P * Q 0, then P is in the clockwise direction of Q
if P x Q 0, then P is in the counterclockwise direction of Q
if P * Q = 0, then P is collinear with Q, but may be the same direction or reverse
3. the judgment point is on the line segment
Set up Q, line P1P2, Q line in the judgment basis is:
(Q - P1) * (P2 - P1) = 0, and Q is in the rectangle with P1 and P2 as diagonal vertices
4. determine whether the two lines intersect
We have two steps to determine whether the two lines intersect:
(1) rapid rejection test
With the line P1P2 for diagonal rectangular R with diagonal line Q1Q2 for rectangular T, if
R and T do not intersect, and obviously the two line segment will not intersect;
(2) straddle test
If the two line segments intersect, then the two line segments must straddle each other, as shown in figure 1. In Figure 1, the P1P2 straddle
Q1Q2, the vectors (P1 - Q1) and (P2 - Q1) lie on both sides of the vector (Q2 - Q1), i.e.
(P1 - Q1) * (Q2 - Q1) * (P2 - Q1) * (Q2 - Q1) 0
Upper form can be rewritten as
(P1 - Q1) * (Q2 - Q1) * (Q2 - Q1) * (P2 - Q1) 0
When (P1 - Q1) x (Q2 - Q1) = 0, the descriptions (P1 - Q1) and (Q2 - Q1) are collinear,
But because of
您可能关注的文档
- 蜂蜜食用注意事项(Notes on honey consumption).doc
- 蜂蜜真假识别(True and false identification of honey).doc
- 蜜丸的制法(Preparation method of pill).doc
- 蜜月度假减压!成功人士首选!境外旅游 对中国免签的国家(Honeymoon vacation decompression! Successful people first choice! Outbound travel to China visa free countries).doc
- 蜜丸制法(Pill preparation method).doc
- 蜗轮蜗杆设计(Worm gear design).doc
- 蜜蜂与蜂螨(Bee and bee mite).doc
- 蜂螫伤1与临床.doc
- 蜱虫传播链调查(Ticks; transmission chain; survey).doc
- 蜘蛛名称对照(Spider name comparison).doc
- 计算机excel技巧(Computer Excel skills).doc
- 计算机专业就业方向(Employment direction of Computer Science).doc
- 计算器界面的计算器(Calculator interface calculator).doc
- 计算机二级excel操作公式(Computer two level excel operation formula).doc
- 计算机发展的20项成果(The 20 fruits of computer development).doc
- 计算机变慢的十大原因(Ten major reasons for slowing down computers).doc
- 计算机变慢(The computer slows down).doc
- 警防窒息 莫把宝宝单独留在车上(Don't let the baby alone in the car).doc
- 计算机变慢10大原因(Top 10 reasons for computer slowing down).doc
- 计算机在医学上之应用(The application of computer in medicine).doc
最近下载
- 内蒙古版小学五年级上册综合实践活动第二单元 社会服务 主题活动— 美化社区我参与(课件).pptx VIP
- 海洋遥感03海洋水色遥感.ppt VIP
- 人工智能科普课件最新完整版本.pptx VIP
- 十五五大学发展规划.docx
- GB/T 17651.1-2021电缆或光缆在特定条件下燃烧的烟密度测定 第1部分:试验装置.pdf
- 小学生劳动知识竞赛题库及答案 .pdf VIP
- 大棚项目可行性研究报告.docx VIP
- 【监理】组织协调内容及措施.docx VIP
- 第二单元 第一节 贮藏 课件 云南教育出版社劳技八年级上册.ppt VIP
- T_CAPE 10001—-2017 设备管理体系 要求.pdf VIP
文档评论(0)