ViewDesignEngine  3.1.0
高性能 CAD 计算几何引擎

SAT (Separating Axis Theorem) 碰撞检测 更多...

#include "vde/core/point.h"
#include <vector>
#include <array>
sat.h 的引用(Include)关系图:

浏览源代码.

命名空间

 vde
 
 vde::collision
 

函数

bool vde::collision::sat_intersect (const std::vector< Point3D > &verts_a, const std::vector< std::array< int, 3 >> &faces_a, const std::vector< Point3D > &verts_b, const std::vector< std::array< int, 3 >> &faces_b)
 SAT 凸多面体相交检测 更多...
 

详细描述

SAT (Separating Axis Theorem) 碰撞检测

基于分离轴定理的凸多面体相交检测。 若存在一条轴使得两形状投影不重叠,则不相交。

在文件 sat.h 中定义.