collision.h

来自「一种动态环境下的基于神经网络的机器人路径搜索」· C头文件 代码 · 共 23 行

H
23
字号
#ifndef COLLISION_H
#define COLLISION_H

#include "utils.h"
#include <math.h>

//--------------------2LinesIntersection2D-------------------------
//
//	Given 2 lines in 2D space AB, CD this returns true if an 
//	intersection occurs and sets dist to the distance the intersection
//  occurs along AB
//----------------------------------------------------------------- 
bool LineIntersection2D(const SPoint A,
                        const SPoint B,
                        const SPoint C, 
                        const SPoint D,
                        double &dist);



#endif

						  

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?