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 + -
显示快捷键?