MeshLib C Docs
Loading...
Searching...
No Matches
MRSegmPoint.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
12
17
22
25MRC_API const float *MR_SegmPointf_Get_eps(void);
26
32MRC_API const float *MR_SegmPointf_Get_a(const MR_SegmPointf *_this);
33
38MRC_API void MR_SegmPointf_Set_a(MR_SegmPointf *_this, float value);
39
46
50
55
58MRC_API const MR_SegmPointf *MR_SegmPointf_OffsetPtr(const MR_SegmPointf *ptr, ptrdiff_t i);
59
63
69
73
75MRC_API void MR_SegmPointf_Destroy(const MR_SegmPointf *_this);
76
78MRC_API void MR_SegmPointf_DestroyArray(const MR_SegmPointf *_this);
79
82MRC_API float MR_SegmPointf_ConvertTo_float(const MR_SegmPointf *_this);
83
88
96
100MRC_API int MR_SegmPointf_inVertex(const MR_SegmPointf *_this);
101
107
112MRC_API bool MR_equal_MR_SegmPointf(const MR_SegmPointf *_this, const MR_SegmPointf *rhs);
113
116MRC_API bool MR_equal_MR_SegmPointf_float(const MR_SegmPointf *_this, float rhs);
117
120MRC_API const double *MR_SegmPointd_Get_eps(void);
121
127MRC_API const double *MR_SegmPointd_Get_a(const MR_SegmPointd *_this);
128
133MRC_API void MR_SegmPointd_Set_a(MR_SegmPointd *_this, double value);
134
141
145
150
153MRC_API const MR_SegmPointd *MR_SegmPointd_OffsetPtr(const MR_SegmPointd *ptr, ptrdiff_t i);
154
158
164
168
170MRC_API void MR_SegmPointd_Destroy(const MR_SegmPointd *_this);
171
173MRC_API void MR_SegmPointd_DestroyArray(const MR_SegmPointd *_this);
174
178
183
191
195MRC_API int MR_SegmPointd_inVertex(const MR_SegmPointd *_this);
196
202
207MRC_API bool MR_equal_MR_SegmPointd(const MR_SegmPointd *_this, const MR_SegmPointd *rhs);
208
211MRC_API bool MR_equal_MR_SegmPointd_double(const MR_SegmPointd *_this, double rhs);
212
213#ifdef __cplusplus
214} // extern "C"
215#endif
struct MR_SegmPointf MR_SegmPointf
Definition MREdgePoint.h:16
MRC_API const float * MR_SegmPointf_Get_eps(void)
MRC_API float MR_SegmPointf_ConvertTo_float(const MR_SegmPointf *_this)
MRC_API const float * MR_SegmPointf_Get_a(const MR_SegmPointf *_this)
MRC_API MR_SegmPointd * MR_SegmPointd_Construct(double a)
MRC_API void MR_SegmPointd_Set_a(MR_SegmPointd *_this, double value)
MRC_API bool MR_equal_MR_SegmPointf(const MR_SegmPointf *_this, const MR_SegmPointf *rhs)
MRC_API MR_SegmPointd * MR_SegmPointd_ConstructFromAnother(const MR_SegmPointd *_other)
MRC_API void MR_SegmPointd_Destroy(const MR_SegmPointd *_this)
Destroys a heap-allocated instance of MR_SegmPointd. Does nothing if the pointer is null.
MRC_API MR_SegmPointf * MR_SegmPointf_sym(const MR_SegmPointf *_this)
MRC_API void MR_SegmPointd_DestroyArray(const MR_SegmPointd *_this)
Destroys a heap-allocated array of MR_SegmPointd. Does nothing if the pointer is null.
MRC_API const double * MR_SegmPointd_Get_a(const MR_SegmPointd *_this)
MRC_API MR_SegmPointd * MR_SegmPointd_AssignFromAnother(MR_SegmPointd *_this, const MR_SegmPointd *_other)
MRC_API MR_SegmPointd * MR_SegmPointd_DefaultConstruct(void)
MRC_API const MR_SegmPointf * MR_SegmPointf_OffsetPtr(const MR_SegmPointf *ptr, ptrdiff_t i)
MRC_API bool MR_equal_MR_SegmPointd(const MR_SegmPointd *_this, const MR_SegmPointd *rhs)
MRC_API MR_SegmPointd * MR_SegmPointd_sym(const MR_SegmPointd *_this)
MRC_API MR_SegmPointf * MR_SegmPointf_OffsetMutablePtr(MR_SegmPointf *ptr, ptrdiff_t i)
MRC_API void MR_SegmPointf_Set_a(MR_SegmPointf *_this, float value)
MRC_API MR_SegmPointf * MR_SegmPointf_DefaultConstructArray(size_t num_elems)
MRC_API void MR_SegmPointf_Destroy(const MR_SegmPointf *_this)
Destroys a heap-allocated instance of MR_SegmPointf. Does nothing if the pointer is null.
MRC_API MR_SegmPointf * MR_SegmPointf_ConstructFromAnother(const MR_SegmPointf *_other)
MRC_API MR_SegmPointd * MR_SegmPointd_OffsetMutablePtr(MR_SegmPointd *ptr, ptrdiff_t i)
MRC_API int MR_SegmPointd_inVertex(const MR_SegmPointd *_this)
MRC_API double * MR_SegmPointd_ConvertTo_double_ref(MR_SegmPointd *_this)
MRC_API MR_SegmPointf * MR_SegmPointf_AssignFromAnother(MR_SegmPointf *_this, const MR_SegmPointf *_other)
MRC_API bool MR_equal_MR_SegmPointd_double(const MR_SegmPointd *_this, double rhs)
struct MR_SegmPointd MR_SegmPointd
encodes a point inside a line segment using relative distance in [0,1] Generated from class MR::SegmP...
Definition MRSegmPoint.h:21
MRC_API MR_SegmPointf * MR_SegmPointf_DefaultConstruct(void)
MRC_API const double * MR_SegmPointd_Get_eps(void)
MRC_API float * MR_SegmPointf_GetMutable_a(MR_SegmPointf *_this)
MRC_API bool MR_equal_MR_SegmPointf_float(const MR_SegmPointf *_this, float rhs)
MRC_API float * MR_SegmPointf_ConvertTo_float_ref(MR_SegmPointf *_this)
MRC_API double * MR_SegmPointd_GetMutable_a(MR_SegmPointd *_this)
MRC_API double MR_SegmPointd_ConvertTo_double(const MR_SegmPointd *_this)
MRC_API MR_SegmPointf * MR_SegmPointf_Construct(float a)
MRC_API void MR_SegmPointf_DestroyArray(const MR_SegmPointf *_this)
Destroys a heap-allocated array of MR_SegmPointf. Does nothing if the pointer is null.
MRC_API MR_SegmPointd * MR_SegmPointd_DefaultConstructArray(size_t num_elems)
MRC_API const MR_SegmPointd * MR_SegmPointd_OffsetPtr(const MR_SegmPointd *ptr, ptrdiff_t i)
MRC_API int MR_SegmPointf_inVertex(const MR_SegmPointf *_this)