DOLFIN-X
DOLFIN-X C++ interface
GJK.h
1 // Copyright (C) 2020 Chris Richardson
2 //
3 // This file is part of DOLFINX (https://www.fenicsproject.org)
4 //
5 // SPDX-License-Identifier: LGPL-3.0-or-later
6 
7 #pragma once
8 
9 #include <Eigen/Dense>
10 
11 namespace dolfinx
12 {
13 namespace geometry
14 {
15 
21 Eigen::Vector3d
22 compute_distance_gjk(const Eigen::Matrix<double, Eigen::Dynamic, 3, Eigen::RowMajor>& p,
23  const Eigen::Matrix<double, Eigen::Dynamic, 3, Eigen::RowMajor>& q);
24 } // namespace geometry
25 } // namespace dolfinx
Eigen::Vector3d compute_distance_gjk(const Eigen::Matrix< double, Eigen::Dynamic, 3, Eigen::RowMajor > &p, const Eigen::Matrix< double, Eigen::Dynamic, 3, Eigen::RowMajor > &q)
Calculate the distance between two convex bodies p and q, each defined by a set of points,...
Definition: GJK.cpp:168