DOLFINx
DOLFINx 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 <xtensor/xfixed.hpp>
10#include <xtensor/xtensor.hpp>
11
12namespace dolfinx::geometry
13{
14
22xt::xtensor_fixed<double, xt::xshape<3>>
23compute_distance_gjk(const xt::xtensor<double, 2>& p,
24 const xt::xtensor<double, 2>& q);
25
26} // namespace dolfinx::geometry
Geometry data structures and algorithms.
Definition: BoundingBoxTree.h:21
xt::xtensor_fixed< double, xt::xshape< 3 > > compute_distance_gjk(const xt::xtensor< double, 2 > &p, const xt::xtensor< double, 2 > &q)
Calculate the distance between two convex bodies p and q, each defined by a set of points,...
Definition: gjk.cpp:195