15 lines
437 B
C++
15 lines
437 B
C++
#pragma once
|
|
#include "vde/core/point.h"
|
|
#include <vector>
|
|
#include <array>
|
|
|
|
namespace vde::collision {
|
|
|
|
/// SAT (Separating Axis Theorem) for convex polyhedra
|
|
bool 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);
|
|
|
|
} // namespace vde::collision
|