BIMHome v1.0.0
BIMHome接口文档说明

◆ 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