MeshLib C Docs
Loading...
Searching...
No Matches
MRTriPoint.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/exports.h>
4
5#include <stdbool.h>
6#include <stddef.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12typedef struct MR_NoInit MR_NoInit; // Defined in `#include <MRCMesh/MRMeshFwd.h>`.
13typedef struct MR_Vector3d MR_Vector3d; // Defined in `#include <MRCMesh/MRVector3.h>`.
14typedef struct MR_Vector3f MR_Vector3f; // Defined in `#include <MRCMesh/MRVector3.h>`.
15
16
21
26
29MRC_API const float *MR_TriPointf_Get_eps(void);
30
35MRC_API const float *MR_TriPointf_Get_a(const MR_TriPointf *_this);
36
40MRC_API void MR_TriPointf_Set_a(MR_TriPointf *_this, float value);
41
47
52MRC_API const float *MR_TriPointf_Get_b(const MR_TriPointf *_this);
53
57MRC_API void MR_TriPointf_Set_b(MR_TriPointf *_this, float value);
58
64
68
73
76
79
84
89
93
98
107
115
118
121
127
133
138
144
150
153MRC_API const double *MR_TriPointd_Get_eps(void);
154
159MRC_API const double *MR_TriPointd_Get_a(const MR_TriPointd *_this);
160
164MRC_API void MR_TriPointd_Set_a(MR_TriPointd *_this, double value);
165
171
176MRC_API const double *MR_TriPointd_Get_b(const MR_TriPointd *_this);
177
181MRC_API void MR_TriPointd_Set_b(MR_TriPointd *_this, double value);
182
188
192
197
200
203
208
213
217
226
234
237
240
246
252
257
263
269
270#ifdef __cplusplus
271} // extern "C"
272#endif
struct MR_NoInit MR_NoInit
Definition MRBox.h:15
struct MR_TriPointf MR_TriPointf
Definition MRMeshTriPoint.h:17
MRC_API MR_TriPointd * MR_TriPointd_DefaultConstruct(void)
MRC_API MR_TriPointf * MR_TriPointf_Construct_2(float a, float b)
MRC_API MR_TriPointd * MR_TriPointd_Construct_1(const MR_NoInit *_1)
MRC_API void MR_TriPointd_DestroyArray(const MR_TriPointd *_this)
Destroys a heap-allocated array of MR_TriPointd. Does nothing if the pointer is null.
MRC_API void MR_TriPointf_Set_a(MR_TriPointf *_this, float value)
MRC_API int MR_TriPointf_onEdge(const MR_TriPointf *_this)
struct MR_TriPointd MR_TriPointd
encodes a point inside a triangle using barycentric coordinates
Definition MRTriPoint.h:25
MRC_API const MR_TriPointf * MR_TriPointf_OffsetPtr(const MR_TriPointf *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API MR_TriPointf * MR_TriPointf_AssignFromAnother(MR_TriPointf *_this, const MR_TriPointf *_other)
MRC_API void MR_TriPointf_Destroy(const MR_TriPointf *_this)
Destroys a heap-allocated instance of MR_TriPointf. Does nothing if the pointer is null.
MRC_API bool MR_equal_MR_TriPointd(const MR_TriPointd *_this, const MR_TriPointd *rhs)
MRC_API MR_TriPointf * MR_TriPointf_OffsetMutablePtr(MR_TriPointf *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API MR_TriPointd * MR_TriPointd_lnext(const MR_TriPointd *_this)
MRC_API MR_TriPointf * MR_TriPointf_DefaultConstruct(void)
MRC_API void MR_TriPointf_Set_b(MR_TriPointf *_this, float value)
MRC_API const float * MR_TriPointf_Get_eps(void)
MRC_API MR_TriPointf * MR_TriPointf_DefaultConstructArray(size_t num_elems)
MRC_API void MR_TriPointf_DestroyArray(const MR_TriPointf *_this)
Destroys a heap-allocated array of MR_TriPointf. Does nothing if the pointer is null.
MRC_API const double * MR_TriPointd_Get_eps(void)
MRC_API MR_TriPointf * MR_TriPointf_Construct_1(const MR_NoInit *_1)
MRC_API MR_TriPointd * MR_TriPointd_ConstructFromAnother(const MR_TriPointd *_other)
MRC_API float * MR_TriPointf_GetMutable_a(MR_TriPointf *_this)
MRC_API MR_TriPointf * MR_TriPointf_Construct_float(const MR_TriPointf *s)
MRC_API double * MR_TriPointd_GetMutable_b(MR_TriPointd *_this)
MRC_API MR_TriPointd * MR_TriPointd_OffsetMutablePtr(MR_TriPointd *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API void MR_TriPointd_Destroy(const MR_TriPointd *_this)
Destroys a heap-allocated instance of MR_TriPointd. Does nothing if the pointer is null.
MRC_API MR_TriPointf * MR_TriPointf_Construct_4(const MR_Vector3f *p, const MR_Vector3f *v0, const MR_Vector3f *v1, const MR_Vector3f *v2)
MRC_API const float * MR_TriPointf_Get_b(const MR_TriPointf *_this)
MRC_API float * MR_TriPointf_GetMutable_b(MR_TriPointf *_this)
MRC_API MR_TriPointf * MR_TriPointf_lnext(const MR_TriPointf *_this)
MRC_API const double * MR_TriPointd_Get_b(const MR_TriPointd *_this)
MRC_API MR_TriPointf * MR_TriPointf_Construct_3(const MR_Vector3f *p, const MR_Vector3f *v1, const MR_Vector3f *v2)
MRC_API MR_TriPointd * MR_TriPointd_Construct_3(const MR_Vector3d *p, const MR_Vector3d *v1, const MR_Vector3d *v2)
MRC_API MR_TriPointf * MR_TriPointf_ConstructFromAnother(const MR_TriPointf *_other)
MRC_API bool MR_equal_MR_TriPointf(const MR_TriPointf *_this, const MR_TriPointf *rhs)
MRC_API const MR_TriPointd * MR_TriPointd_OffsetPtr(const MR_TriPointd *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API MR_TriPointd * MR_TriPointd_DefaultConstructArray(size_t num_elems)
MRC_API void MR_TriPointd_Set_a(MR_TriPointd *_this, double value)
MRC_API void MR_TriPointd_Set_b(MR_TriPointd *_this, double value)
MRC_API MR_TriPointd * MR_TriPointd_Construct_4(const MR_Vector3d *p, const MR_Vector3d *v0, const MR_Vector3d *v1, const MR_Vector3d *v2)
MRC_API int MR_TriPointd_onEdge(const MR_TriPointd *_this)
MRC_API int MR_TriPointd_inVertex(const MR_TriPointd *_this)
MRC_API MR_TriPointd * MR_TriPointd_Construct_2(double a, double b)
MRC_API double * MR_TriPointd_GetMutable_a(MR_TriPointd *_this)
MRC_API MR_TriPointd * MR_TriPointd_AssignFromAnother(MR_TriPointd *_this, const MR_TriPointd *_other)
MRC_API const float * MR_TriPointf_Get_a(const MR_TriPointf *_this)
MRC_API const double * MR_TriPointd_Get_a(const MR_TriPointd *_this)
MRC_API int MR_TriPointf_inVertex(const MR_TriPointf *_this)
#define MRC_API
Definition exports.h:11
Definition MRVector3.h:59
Definition MRVector3.h:50