preCICE v3.1.2
Loading...
Searching...
No Matches
Namespaces | Functions
barycenter.cpp File Reference
#include "math/barycenter.hpp"
#include <Eigen/Core>
#include <Eigen/Geometry>
#include <utility>
#include "math/differences.hpp"
#include "math/geometry.hpp"
#include "utils/assertion.hpp"
Include dependency graph for barycenter.cpp:

Go to the source code of this file.

Namespaces

namespace  precice
 Main namespace of the precice library.
 
namespace  precice::math
 provides general mathematical constants and functions.
 
namespace  precice::math::barycenter
 Provides operations to calculate barycentric coordinates for a point's projection onto a primitive.
 

Functions

Eigen::Vector2d precice::math::barycenter::calcBarycentricCoordsForEdge (const Eigen::VectorXd &a, const Eigen::VectorXd &b, const Eigen::VectorXd &u)
 
static double precice::math::barycenter::crossProduct2D (const Eigen::Vector2d &u, const Eigen::Vector2d &v)
 
Eigen::Vector3d precice::math::barycenter::calcBarycentricCoordsForTriangle (const Eigen::VectorXd &a, const Eigen::VectorXd &b, const Eigen::VectorXd &c, const Eigen::VectorXd &u)
 
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)