文件名称:IntersectionPointOfTwoLines
- 所属分类:
- 数学计算/工程计算
- 资源属性:
- [Windows] [Visual C] [Basic/ASP] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 8kb
- 下载次数:
- 1次
- 提 供 者:
- 覃*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
该代码绝对本人原创,可根据两打直线的四个端点坐标求解交点,并判断交点为实交点或虚交点,若两直线重合或平行,则返回值为FALSE:
以下代码为求交点的函数,使用方法:
rtn=InterPointTwoLine(直线A起点X,直线A起点Y,直线A终点X,直线A终点Y,
直线B起点X,直线B起点Y,直线B终点X,直线B终点Y,
返回的交点X,返回的交点Y,交点类型)
有交点时该函数返回值为True,平行或重合时返回False
最后一个参数(Inter_Type)是交点类型:
InterPointType=1 实交点 InterPointType=-1 虚交点 InterPointType=0 无交点此时函数的返回值同时为False
覃东 (C)测量员网 http://www.SurMap.com
2009-08-01 23:06-This code myself original, may act according to two dozens of straight lines absolutely four vertex coordinates to solve the point of intersection, and judges the point of intersection for the solid point of intersection or the imaginary intersection point, if two straight line superpositions or parallel, then the returns value is FALSE:the yixia code to ask the point of intersection the function, application method: rtn=InterPointTwoLine (straight line A beginning X, straight line A beginning Y, straight line A end point X, straight line A end point Y, Straight line B beginning X, straight line B beginning Y, straight line B end point X, straight line B end point Y, Returns point of intersection X, returns point of intersection Y, point of intersection type)when you point of intersection this function returns value is True, parallel or when superposition returns to False zuihou parameter (Inter_Type) is the point of intersection type: InterPointType=1 solid point of intersect
以下代码为求交点的函数,使用方法:
rtn=InterPointTwoLine(直线A起点X,直线A起点Y,直线A终点X,直线A终点Y,
直线B起点X,直线B起点Y,直线B终点X,直线B终点Y,
返回的交点X,返回的交点Y,交点类型)
有交点时该函数返回值为True,平行或重合时返回False
最后一个参数(Inter_Type)是交点类型:
InterPointType=1 实交点 InterPointType=-1 虚交点 InterPointType=0 无交点此时函数的返回值同时为False
覃东 (C)测量员网 http://www.SurMap.com
2009-08-01 23:06-This code myself original, may act according to two dozens of straight lines absolutely four vertex coordinates to solve the point of intersection, and judges the point of intersection for the solid point of intersection or the imaginary intersection point, if two straight line superpositions or parallel, then the returns value is FALSE:the yixia code to ask the point of intersection the function, application method: rtn=InterPointTwoLine (straight line A beginning X, straight line A beginning Y, straight line A end point X, straight line A end point Y, Straight line B beginning X, straight line B beginning Y, straight line B end point X, straight line B end point Y, Returns point of intersection X, returns point of intersection Y, point of intersection type)when you point of intersection this function returns value is True, parallel or when superposition returns to False zuihou parameter (Inter_Type) is the point of intersection type: InterPointType=1 solid point of intersect
(系统自动生成,下载前可以参看下载内容)
下载文件列表
两直线求实交点
..............\interpoint.exe
..............\interpoint.frm
..............\interpoint.vbp
..............\interpoint.vbw
..............\MSSCCPRJ.SCC
..............\interpoint.exe
..............\interpoint.frm
..............\interpoint.vbp
..............\interpoint.vbw
..............\MSSCCPRJ.SCC