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>`.
15typedef struct MR_std_istream MR_std_istream; // Defined in `#include <MRCMisc/iostream.h>`.
16typedef struct MR_std_ostream MR_std_ostream; // Defined in `#include <MRCMisc/iostream.h>`.
17
18
24
30
33MRC_API const float *MR_TriPointf_Get_eps(void);
34
39MRC_API const float *MR_TriPointf_Get_a(const MR_TriPointf *_this);
40
44MRC_API void MR_TriPointf_Set_a(MR_TriPointf *_this, float value);
45
51
56MRC_API const float *MR_TriPointf_Get_b(const MR_TriPointf *_this);
57
61MRC_API void MR_TriPointf_Set_b(MR_TriPointf *_this, float value);
62
68
72
77
80
83
88
93
97
106
114
117
120
126
132
137
143
149
155
161
164MRC_API const double *MR_TriPointd_Get_eps(void);
165
170MRC_API const double *MR_TriPointd_Get_a(const MR_TriPointd *_this);
171
175MRC_API void MR_TriPointd_Set_a(MR_TriPointd *_this, double value);
176
182
187MRC_API const double *MR_TriPointd_Get_b(const MR_TriPointd *_this);
188
192MRC_API void MR_TriPointd_Set_b(MR_TriPointd *_this, double value);
193
199
203
208
211
214
219
224
228
237
245
248
251
257
263
268
274
280
286
292
293#ifdef __cplusplus
294} // extern "C"
295#endif
struct MR_NoInit MR_NoInit
Definition MRBox.h:15
struct MR_std_ostream MR_std_ostream
Definition MRCtm.h:31
struct MR_std_istream MR_std_istream
Definition MRCtm.h:28
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:29
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 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 MR_std_istream * MR_input_MR_TriPointf(MR_std_istream *s, MR_TriPointf *tp)
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 MR_std_istream * MR_input_MR_TriPointd(MR_std_istream *s, MR_TriPointd *tp)
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 MR_std_ostream * MR_print_MR_TriPointf(MR_std_ostream *s, const MR_TriPointf *tp)
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 MR_std_ostream * MR_print_MR_TriPointd(MR_std_ostream *s, const MR_TriPointd *tp)
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:61
Definition MRVector3.h:52