preCICE v3.1.2
|
Provides operations to calculate barycentric coordinates for a point's projection onto a primitive. More...
Functions | |
Eigen::Vector2d | calcBarycentricCoordsForEdge (const Eigen::VectorXd &a, const Eigen::VectorXd &b, const Eigen::VectorXd &u) |
static double | crossProduct2D (const Eigen::Vector2d &u, const Eigen::Vector2d &v) |
Eigen::Vector3d | calcBarycentricCoordsForTriangle (const Eigen::VectorXd &a, const Eigen::VectorXd &b, const Eigen::VectorXd &c, const Eigen::VectorXd &u) |
Eigen::Vector4d | calcBarycentricCoordsForTetrahedron (const Eigen::VectorXd &a, const Eigen::VectorXd &b, const Eigen::VectorXd &c, const Eigen::VectorXd &d, const Eigen::VectorXd &u) |
Provides operations to calculate barycentric coordinates for a point's projection onto a primitive.
Eigen::Vector2d precice::math::barycenter::calcBarycentricCoordsForEdge | ( | const Eigen::VectorXd & | a, |
const Eigen::VectorXd & | b, | ||
const Eigen::VectorXd & | u ) |
Takes the end vertices of an edge and a point in 2D or 3D space. Returns the barycentric coordinates for that point's projection onto the given edge.
a | point A of the edge AB |
b | point B of the edge AB |
u | the point to compute the barycentric coordinates for |
Definition at line 11 of file barycenter.cpp.
Eigen::Vector4d precice::math::barycenter::calcBarycentricCoordsForTetrahedron | ( | const Eigen::VectorXd & | a, |
const Eigen::VectorXd & | b, | ||
const Eigen::VectorXd & | c, | ||
const Eigen::VectorXd & | d, | ||
const Eigen::VectorXd & | u ) |
Takes the corner vertices of a tetrahedron and a point in 3D space. Returns the barycentric coordinates for that point's projection onto the given tetrahedron.
a | point A of the tetrahedron ABCD |
b | point B of the tetrahedron ABCD |
c | point C of the tetrahedron ABCD |
d | point D of the tetrahedron ABCD |
u | the point to compute the barycentric coordinates for |
Definition at line 101 of file barycenter.cpp.
Eigen::Vector3d precice::math::barycenter::calcBarycentricCoordsForTriangle | ( | const Eigen::VectorXd & | a, |
const Eigen::VectorXd & | b, | ||
const Eigen::VectorXd & | c, | ||
const Eigen::VectorXd & | u ) |
Takes the corner vertices of a triangle and a point in 3D space. Returns the barycentric coordinates for that point's projection onto the given triangle.
a | point A of the triangle ABC |
b | point B of the triangle ABC |
c | point C of the triangle ABC |
u | the point to compute the barycentric coordinates for |
Definition at line 45 of file barycenter.cpp.
|
static |
Definition at line 40 of file barycenter.cpp.