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#include <stdint.h>
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13typedef struct MR_NoInit MR_NoInit; // Defined in `#include <MRCMesh/MRMeshFwd.h>`.
14typedef struct MR_Vector3d MR_Vector3d; // Defined in `#include <MRCMesh/MRVector3.h>`.
15typedef struct MR_Vector3f MR_Vector3f; // Defined in `#include <MRCMesh/MRVector3.h>`.
16
17
22
27
30MRC_API const float *MR_TriPointf_Get_eps(void);
31
36MRC_API const float *MR_TriPointf_Get_a(const MR_TriPointf *_this);
37
41MRC_API void MR_TriPointf_Set_a(MR_TriPointf *_this, float value);
42
48
53MRC_API const float *MR_TriPointf_Get_b(const MR_TriPointf *_this);
54
58MRC_API void MR_TriPointf_Set_b(MR_TriPointf *_this, float value);
59
65
69
74
77
80
85
90
94
99
108
116
119
122
128
134
139
145
151
154MRC_API const double *MR_TriPointd_Get_eps(void);
155
160MRC_API const double *MR_TriPointd_Get_a(const MR_TriPointd *_this);
161
165MRC_API void MR_TriPointd_Set_a(MR_TriPointd *_this, double value);
166
172
177MRC_API const double *MR_TriPointd_Get_b(const MR_TriPointd *_this);
178
182MRC_API void MR_TriPointd_Set_b(MR_TriPointd *_this, double value);
183
189
193
198
201
204
209
214
218
227
235
238
241
247
253
258
264
270
271#ifdef __cplusplus
272} // extern "C"
273#endif
struct MR_NoInit MR_NoInit
Definition MRBox.h:16
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)
struct MR_TriPointd MR_TriPointd
encodes a point inside a triangle using barycentric coordinates
Definition MRTriPoint.h:26
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 int32_t MR_TriPointd_inVertex(const MR_TriPointd *_this)
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 int32_t MR_TriPointf_inVertex(const MR_TriPointf *_this)
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 int32_t MR_TriPointd_onEdge(const MR_TriPointd *_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 int32_t MR_TriPointf_onEdge(const MR_TriPointf *_this)
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 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)
#define MRC_API
Definition exports.h:11
Definition MRVector3.h:60
Definition MRVector3.h:51