Note: this is documentation for an old release. View the latest documentation at
docs.fenicsproject.org/dolfinx/v0.9.0/cpp/doxygen/d2/d3c/gjk_8h_source.html
DOLFINx
0.5.1
DOLFINx C++ interface
dolfinx
geometry
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 <array>
10
#include <span>
11
12
namespace
dolfinx::geometry
13
{
14
24
std::array<double, 3>
compute_distance_gjk
(
const
std::span<const double>& p,
25
const
std::span<const double>& q);
26
27
}
// namespace dolfinx::geometry
dolfinx::geometry
Geometry data structures and algorithms.
Definition:
BoundingBoxTree.h:23
dolfinx::geometry::compute_distance_gjk
std::array< double, 3 > compute_distance_gjk(const std::span< const double > &p, const std::span< const double > &q)
Calculate the distance between two convex bodies p and q, each defined by a set of points,...
Definition:
gjk.cpp:239
Generated by
1.9.1