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
40MRC_API const float *MR_TriPointf_Get_a(const MR_TriPointf *_this);
41
46MRC_API void MR_TriPointf_Set_a(MR_TriPointf *_this, float value);
47
54
60MRC_API const float *MR_TriPointf_Get_b(const MR_TriPointf *_this);
61
66MRC_API void MR_TriPointf_Set_b(MR_TriPointf *_this, float value);
67
74
78
83
86MRC_API const MR_TriPointf *MR_TriPointf_OffsetPtr(const MR_TriPointf *ptr, ptrdiff_t i);
87
91
97
103
106MRC_API MR_TriPointf *MR_TriPointf_Construct_2(float a, float b);
107
119MRC_API MR_TriPointf *MR_TriPointf_Construct_4(const MR_Vector3f *p, const MR_Vector3f *v0, const MR_Vector3f *v1, const MR_Vector3f *v2);
120
131
133MRC_API void MR_TriPointf_Destroy(const MR_TriPointf *_this);
134
136MRC_API void MR_TriPointf_DestroyArray(const MR_TriPointf *_this);
137
145
151
155MRC_API int MR_TriPointf_inVertex(const MR_TriPointf *_this);
156
161MRC_API int MR_TriPointf_onEdge(const MR_TriPointf *_this);
162
167MRC_API bool MR_equal_MR_TriPointf(const MR_TriPointf *_this, const MR_TriPointf *rhs);
168
174
180
183MRC_API const double *MR_TriPointd_Get_eps(void);
184
190MRC_API const double *MR_TriPointd_Get_a(const MR_TriPointd *_this);
191
196MRC_API void MR_TriPointd_Set_a(MR_TriPointd *_this, double value);
197
204
210MRC_API const double *MR_TriPointd_Get_b(const MR_TriPointd *_this);
211
216MRC_API void MR_TriPointd_Set_b(MR_TriPointd *_this, double value);
217
224
228
233
236MRC_API const MR_TriPointd *MR_TriPointd_OffsetPtr(const MR_TriPointd *ptr, ptrdiff_t i);
237
241
247
253
256MRC_API MR_TriPointd *MR_TriPointd_Construct_2(double a, double b);
257
269MRC_API MR_TriPointd *MR_TriPointd_Construct_4(const MR_Vector3d *p, const MR_Vector3d *v0, const MR_Vector3d *v1, const MR_Vector3d *v2);
270
281
283MRC_API void MR_TriPointd_Destroy(const MR_TriPointd *_this);
284
286MRC_API void MR_TriPointd_DestroyArray(const MR_TriPointd *_this);
287
295
301
305MRC_API int MR_TriPointd_inVertex(const MR_TriPointd *_this);
306
311MRC_API int MR_TriPointd_onEdge(const MR_TriPointd *_this);
312
317MRC_API bool MR_equal_MR_TriPointd(const MR_TriPointd *_this, const MR_TriPointd *rhs);
318
324
330
331#ifdef __cplusplus
332} // extern "C"
333#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)
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)
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)
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)
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)
Generated from class MR::Vector3d.
Definition MRVector3.h:55
Generated from class MR::Vector3f.
Definition MRVector3.h:47