libigl v2.5.0
Loading...
Searching...
No Matches
point_simplex_squared_distance.h
Go to the documentation of this file.
1// This file is part of libigl, a simple c++ geometry processing library.
2//
3// Copyright (C) 2016 Alec Jacobson <alecjacobson@gmail.com>
4//
5// This Source Code Form is subject to the terms of the Mozilla Public License
6// v. 2.0. If a copy of the MPL was not distributed with this file, You can
7// obtain one at http://mozilla.org/MPL/2.0/.
8#ifndef IGL_POINT_SIMPLEX_SQUARED_DISTANCE_H
9#define IGL_POINT_SIMPLEX_SQUARED_DISTANCE_H
10#include "igl_inline.h"
11#include <Eigen/Core>
12namespace igl
13{
23 template <
24 int DIM,
25 typename Derivedp,
26 typename DerivedV,
27 typename DerivedEle,
28 typename Derivedsqr_d,
29 typename Derivedc>
31 const Eigen::MatrixBase<Derivedp> & p,
32 const Eigen::MatrixBase<DerivedV> & V,
33 const Eigen::MatrixBase<DerivedEle> & Ele,
34 const typename DerivedEle::Index i,
35 Derivedsqr_d & sqr_d,
36 Eigen::PlainObjectBase<Derivedc> & c);
48 template <
49 int DIM,
50 typename Derivedp,
51 typename DerivedV,
52 typename DerivedEle,
53 typename Derivedsqr_d,
54 typename Derivedc,
55 typename Derivedb>
57 const Eigen::MatrixBase<Derivedp> & p,
58 const Eigen::MatrixBase<DerivedV> & V,
59 const Eigen::MatrixBase<DerivedEle> & Ele,
60 const typename DerivedEle::Index i,
61 Derivedsqr_d & sqr_d,
62 Eigen::PlainObjectBase<Derivedc> & c,
63 Eigen::PlainObjectBase<Derivedb> & b);
64}
65#ifndef IGL_STATIC_LIBRARY
66# include "point_simplex_squared_distance.cpp"
67#endif
68#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void point_simplex_squared_distance(const Eigen::MatrixBase< Derivedp > &p, const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixBase< DerivedEle > &Ele, const typename DerivedEle::Index i, Derivedsqr_d &sqr_d, Eigen::PlainObjectBase< Derivedc > &c)
Determine squared distance from a point to linear simplex.