MeshLib C Docs
Loading...
Searching...
No Matches
MRParabola.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/exports.h>
4
5#include <stddef.h>
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11
15
19
23MRC_API const float *MR_Parabolaf_Get_a(const MR_Parabolaf *_this);
24
27MRC_API void MR_Parabolaf_Set_a(MR_Parabolaf *_this, float value);
28
33
37MRC_API const float *MR_Parabolaf_Get_b(const MR_Parabolaf *_this);
38
41MRC_API void MR_Parabolaf_Set_b(MR_Parabolaf *_this, float value);
42
47
51MRC_API const float *MR_Parabolaf_Get_c(const MR_Parabolaf *_this);
52
55MRC_API void MR_Parabolaf_Set_c(MR_Parabolaf *_this, float value);
56
61
65
70
73
76
81
84MRC_API MR_Parabolaf *MR_Parabolaf_Construct(float a, float b, float c);
85
88
91
97
101MRC_API float MR_Parabolaf_call(const MR_Parabolaf *_this, float x);
102
107
112
116MRC_API const double *MR_Parabolad_Get_a(const MR_Parabolad *_this);
117
120MRC_API void MR_Parabolad_Set_a(MR_Parabolad *_this, double value);
121
126
130MRC_API const double *MR_Parabolad_Get_b(const MR_Parabolad *_this);
131
134MRC_API void MR_Parabolad_Set_b(MR_Parabolad *_this, double value);
135
140
144MRC_API const double *MR_Parabolad_Get_c(const MR_Parabolad *_this);
145
148MRC_API void MR_Parabolad_Set_c(MR_Parabolad *_this, double value);
149
154
158
163
166
169
174
177MRC_API MR_Parabolad *MR_Parabolad_Construct(double a, double b, double c);
178
181
184
190
194MRC_API double MR_Parabolad_call(const MR_Parabolad *_this, double x);
195
200
205
206#ifdef __cplusplus
207} // extern "C"
208#endif
struct MR_Parabolad MR_Parabolad
Definition MRBestFitParabola.h:11
struct MR_Parabolaf MR_Parabolaf
Definition MRBestFitParabola.h:12
MRC_API const MR_Parabolaf * MR_Parabolaf_OffsetPtr(const MR_Parabolaf *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_Parabolad_Destroy(const MR_Parabolad *_this)
Destroys a heap-allocated instance of MR_Parabolad. Does nothing if the pointer is null.
MRC_API MR_Parabolaf * MR_Parabolaf_AssignFromAnother(MR_Parabolaf *_this, const MR_Parabolaf *_other)
MRC_API float * MR_Parabolaf_GetMutable_c(MR_Parabolaf *_this)
MRC_API MR_Parabolaf * MR_Parabolaf_Construct(float a, float b, float c)
MRC_API const float * MR_Parabolaf_Get_b(const MR_Parabolaf *_this)
MRC_API void MR_Parabolaf_Destroy(const MR_Parabolaf *_this)
Destroys a heap-allocated instance of MR_Parabolaf. Does nothing if the pointer is null.
MRC_API MR_Parabolad * MR_Parabolad_AssignFromAnother(MR_Parabolad *_this, const MR_Parabolad *_other)
MRC_API double MR_Parabolad_extremArg(const MR_Parabolad *_this)
MRC_API void MR_Parabolaf_Set_b(MR_Parabolaf *_this, float value)
MRC_API const float * MR_Parabolaf_Get_c(const MR_Parabolaf *_this)
MRC_API double * MR_Parabolad_GetMutable_b(MR_Parabolad *_this)
MRC_API MR_Parabolad * MR_Parabolad_ConstructFromAnother(const MR_Parabolad *_other)
MRC_API void MR_Parabolaf_Set_c(MR_Parabolaf *_this, float value)
MRC_API const double * MR_Parabolad_Get_b(const MR_Parabolad *_this)
MRC_API MR_Parabolaf * MR_Parabolaf_ConstructFromAnother(const MR_Parabolaf *_other)
MRC_API MR_Parabolad * MR_Parabolad_DefaultConstruct(void)
MRC_API float * MR_Parabolaf_GetMutable_a(MR_Parabolaf *_this)
MRC_API const float * MR_Parabolaf_Get_a(const MR_Parabolaf *_this)
MRC_API MR_Parabolad * MR_Parabolad_DefaultConstructArray(size_t num_elems)
MRC_API float MR_Parabolaf_extremArg(const MR_Parabolaf *_this)
MRC_API MR_Parabolaf * MR_Parabolaf_DefaultConstructArray(size_t num_elems)
MRC_API void MR_Parabolad_DestroyArray(const MR_Parabolad *_this)
Destroys a heap-allocated array of MR_Parabolad. Does nothing if the pointer is null.
MRC_API void MR_Parabolad_Set_b(MR_Parabolad *_this, double value)
MRC_API double MR_Parabolad_extremVal(const MR_Parabolad *_this)
MRC_API MR_Parabolaf * MR_Parabolaf_OffsetMutablePtr(MR_Parabolaf *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 float * MR_Parabolaf_GetMutable_b(MR_Parabolaf *_this)
MRC_API MR_Parabolad * MR_Parabolad_Construct(double a, double b, double c)
MRC_API void MR_Parabolad_Set_a(MR_Parabolad *_this, double value)
MRC_API void MR_Parabolad_Set_c(MR_Parabolad *_this, double value)
MRC_API double * MR_Parabolad_GetMutable_a(MR_Parabolad *_this)
MRC_API float MR_Parabolaf_extremVal(const MR_Parabolaf *_this)
MRC_API void MR_Parabolaf_DestroyArray(const MR_Parabolaf *_this)
Destroys a heap-allocated array of MR_Parabolaf. Does nothing if the pointer is null.
MRC_API double * MR_Parabolad_GetMutable_c(MR_Parabolad *_this)
MRC_API const double * MR_Parabolad_Get_a(const MR_Parabolad *_this)
MRC_API const MR_Parabolad * MR_Parabolad_OffsetPtr(const MR_Parabolad *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_Parabolaf * MR_Parabolaf_DefaultConstruct(void)
MRC_API const double * MR_Parabolad_Get_c(const MR_Parabolad *_this)
MRC_API float MR_Parabolaf_call(const MR_Parabolaf *_this, float x)
MRC_API void MR_Parabolaf_Set_a(MR_Parabolaf *_this, float value)
MRC_API MR_Parabolad * MR_Parabolad_OffsetMutablePtr(MR_Parabolad *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 double MR_Parabolad_call(const MR_Parabolad *_this, double x)
#define MRC_API
Definition exports.h:11