📄 collision.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -