Welcome to mirror list, hosted at ThFree Co, Russian Federation.

admmpd_math.h « src « softbody « extern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d777df5ce2ede026bb423d1eddcc74a7a61f46cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30



#ifndef _ADMMPD_MATH_H
#define _ADMMPD_MATH_H

#include <Eigen/Geometry>

namespace admmpd {
namespace barycoords {

Eigen::Matrix<double,4,1> point_tet(
    const Eigen::Matrix<double,3,1> &p,
    const Eigen::Matrix<double,3,1> &a,
    const Eigen::Matrix<double,3,1> &b,
    const Eigen::Matrix<double,3,1> &c,
    const Eigen::Matrix<double,3,1> &d);

bool point_in_tet(
    const Eigen::Matrix<double,3,1> &p,
    const Eigen::Matrix<double,3,1> &a,
    const Eigen::Matrix<double,3,1> &b,
    const Eigen::Matrix<double,3,1> &c,
    const Eigen::Matrix<double,3,1> &d);

} // namespace barycoords

} // namespace admmpd

#endif //_ADMMPD_MATH_H