BIMHome
v1.0.0
BIMHome接口文档说明
首页
相关页面
Topics
包
类
文件
Base
CalcIntersectionPoint
CalcIntersectionPoint
calculateLineIntersection
getIntersectionPoints
~CalcIntersectionPoint
◆
calculateLineIntersection()
static bool calculateLineIntersection
(
Vector3f
startpot
,
Vector3f
endpot
,
Vector3f
startpot1
,
Vector3f
endpot1
,
Vector3f
&
point
)
static
计算两条线段的交点
计算两条线段的交点,如果存在交点,则返回 true 并将交点存储在 point 中。
参数
[in]
startpot
第一条线段的起点
[in]
endpot
第一条线段的终点
[in]
startpot1
第二条线段的起点
[in]
endpot1
第二条线段的终点
[out]
point
用于存储交点的向量
返回
如果存在交点,返回 true;否则返回 false