MeshLib C Docs
Loading...
Searching...
No Matches
MRTriDist.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/exports.h>
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9typedef struct MR_Vector3f MR_Vector3f; // Defined in `#include <MRCMesh/MRVector3.h>`.
10
11
26
36MRC_API void MR_SegPoints(MR_Vector3f *VEC, MR_Vector3f *X, MR_Vector3f *Y, const MR_Vector3f *P, const MR_Vector3f *A, const MR_Vector3f *Q, const MR_Vector3f *B);
37
38#ifdef __cplusplus
39} // extern "C"
40#endif
MRC_API float MR_TriDist(MR_Vector3f *p, MR_Vector3f *q, const MR_Vector3f *s, const MR_Vector3f *t)
computes the closest points on two triangles, and returns the squared distance between them.
MRC_API void MR_SegPoints(MR_Vector3f *VEC, MR_Vector3f *X, MR_Vector3f *Y, const MR_Vector3f *P, const MR_Vector3f *A, const MR_Vector3f *Q, const MR_Vector3f *B)
#define MRC_API
Definition exports.h:11
Definition MRVector3.h:51