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::geometry
12 {
13 
19 Eigen::Vector3d compute_distance_gjk(
20  const Eigen::Matrix<double, Eigen::Dynamic, 3, Eigen::RowMajor>& p,
21  const Eigen::Matrix<double, Eigen::Dynamic, 3, Eigen::RowMajor>& q);
22 }
Geometry data structures and algorithms.
Definition: BoundingBoxTree.h:25
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:170