MeshLib C++ Docs
Loading...
Searching...
No Matches
MRClosestPointInTriangle.h File Reference
#include "MRVector3.h"
#include "MRTriPoint.h"
#include "MRMacros.h"
#include "MRPch/MRBindingMacros.h"
#include <cassert>

Go to the source code of this file.

Namespaces

namespace  MR
 Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).

Functions

template<typename T>
MR_FORCE_INLINE std::pair< Vector3< T >, TriPoint< T > > MR::closestPointInTriangle (const Vector3< T > &p, const Vector3< T > &a, const Vector3< T > &b, const Vector3< T > &c)
 forced inline: through a call, the vertices are stored in memory and reloaded, which can stall on store forwarding
 MR::MR_BIND_TEMPLATE (std::pair< Vector3f, TriPointf > closestPointInTriangle(const Vector3f &p, const Vector3f &a, const Vector3f &b, const Vector3f &c))
 MR::MR_BIND_TEMPLATE (std::pair< Vector3d, TriPointd > closestPointInTriangle(const Vector3d &p, const Vector3d &a, const Vector3d &b, const Vector3d &c))