MeshLib C Docs
Loading...
Searching...
No Matches
MRPlane3.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMesh/MRVector3.h>
4#include <MRCMisc/exports.h>
5
6#include <stddef.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12
15typedef struct MR_Plane3f MR_Plane3f;
16
19typedef struct MR_Plane3d MR_Plane3d;
20
25
29
34
38MRC_API const float *MR_Plane3f_Get_d(const MR_Plane3f *_this);
39
42MRC_API void MR_Plane3f_Set_d(MR_Plane3f *_this, float value);
43
48
52
57
59MRC_API const MR_Plane3f *MR_Plane3f_OffsetPtr(const MR_Plane3f *ptr, ptrdiff_t i);
60
63
68
73
78
83
86
89
95
101
106MRC_API float MR_Plane3f_distance(const MR_Plane3f *_this, const MR_Vector3f *x);
107
113
119
125
131
136
140
145
149MRC_API const double *MR_Plane3d_Get_d(const MR_Plane3d *_this);
150
153MRC_API void MR_Plane3d_Set_d(MR_Plane3d *_this, double value);
154
159
163
168
170MRC_API const MR_Plane3d *MR_Plane3d_OffsetPtr(const MR_Plane3d *ptr, ptrdiff_t i);
171
174
179
184
189
192
195
201
207
212MRC_API double MR_Plane3d_distance(const MR_Plane3d *_this, const MR_Vector3d *x);
213
219
225
231
237
238#ifdef __cplusplus
239} // extern "C"
240#endif
struct MR_Plane3d MR_Plane3d
Definition MRBestFit.h:22
struct MR_Plane3f MR_Plane3f
Definition MRBestFit.h:23
MRC_API const MR_Plane3d * MR_pos_MR_Plane3d(const MR_Plane3d *_this)
MRC_API void MR_Plane3d_Set_n(MR_Plane3d *_this, MR_Vector3d value)
MRC_API const MR_Plane3f * MR_pos_MR_Plane3f(const MR_Plane3f *_this)
MRC_API MR_Plane3d * MR_Plane3d_ConstructFromAnother(const MR_Plane3d *_other)
MRC_API const MR_Vector3f * MR_Plane3f_Get_n(const MR_Plane3f *_this)
MRC_API MR_Vector3d MR_Plane3d_project(const MR_Plane3d *_this, const MR_Vector3d *p)
MRC_API MR_Vector3f MR_Plane3f_project(const MR_Plane3f *_this, const MR_Vector3f *p)
MRC_API MR_Plane3f * MR_Plane3f_DefaultConstructArray(size_t num_elems)
MRC_API void MR_Plane3f_DestroyArray(const MR_Plane3f *_this)
Destroys a heap-allocated array of MR_Plane3f. Does nothing if the pointer is null.
MRC_API MR_Plane3d * MR_Plane3d_DefaultConstruct(void)
MRC_API MR_Plane3d * MR_neg_MR_Plane3d(const MR_Plane3d *_this)
MRC_API MR_Plane3f * MR_Plane3f_normalized(const MR_Plane3f *_this)
MRC_API MR_Plane3f * MR_Plane3f_ConstructFromAnother(const MR_Plane3f *_other)
MRC_API void MR_Plane3d_Set_d(MR_Plane3d *_this, double value)
MRC_API MR_Plane3d * MR_Plane3d_fromDirAndPt(const MR_Vector3d *n, const MR_Vector3d *p)
MRC_API const double * MR_Plane3d_Get_d(const MR_Plane3d *_this)
MRC_API const MR_Vector3d * MR_Plane3d_Get_n(const MR_Plane3d *_this)
MRC_API void MR_Plane3d_Destroy(const MR_Plane3d *_this)
Destroys a heap-allocated instance of MR_Plane3d. Does nothing if the pointer is null.
MRC_API void MR_Plane3d_DestroyArray(const MR_Plane3d *_this)
Destroys a heap-allocated array of MR_Plane3d. Does nothing if the pointer is null.
MRC_API MR_Vector3d * MR_Plane3d_GetMutable_n(MR_Plane3d *_this)
MRC_API MR_Plane3d * MR_Plane3d_AssignFromAnother(MR_Plane3d *_this, const MR_Plane3d *_other)
MRC_API MR_Plane3d * MR_Plane3d_Construct_float(const MR_Plane3f *p)
MRC_API MR_Plane3f * MR_Plane3f_DefaultConstruct(void)
MRC_API MR_Plane3d * MR_Plane3d_DefaultConstructArray(size_t num_elems)
MRC_API const float * MR_Plane3f_Get_d(const MR_Plane3f *_this)
MRC_API void MR_Plane3f_Destroy(const MR_Plane3f *_this)
Destroys a heap-allocated instance of MR_Plane3f. Does nothing if the pointer is null.
MRC_API MR_Plane3d * MR_Plane3d_normalized(const MR_Plane3d *_this)
MRC_API const MR_Plane3d * MR_Plane3d_OffsetPtr(const MR_Plane3d *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_Plane3d_GetMutable_d(MR_Plane3d *_this)
MRC_API MR_Plane3f * MR_Plane3f_Construct(const MR_Vector3f *n, float d)
MRC_API MR_Plane3d * MR_Plane3d_Construct(const MR_Vector3d *n, double d)
MRC_API MR_Plane3f * MR_Plane3f_Construct_double(const MR_Plane3d *p)
MRC_API MR_Plane3f * MR_Plane3f_OffsetMutablePtr(MR_Plane3f *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_Plane3f_distance(const MR_Plane3f *_this, const MR_Vector3f *x)
MRC_API float * MR_Plane3f_GetMutable_d(MR_Plane3f *_this)
MRC_API void MR_Plane3f_Set_n(MR_Plane3f *_this, MR_Vector3f value)
MRC_API MR_Plane3f * MR_Plane3f_AssignFromAnother(MR_Plane3f *_this, const MR_Plane3f *_other)
MRC_API const MR_Plane3f * MR_Plane3f_OffsetPtr(const MR_Plane3f *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_Plane3f * MR_Plane3f_fromDirAndPt(const MR_Vector3f *n, const MR_Vector3f *p)
MRC_API MR_Plane3d * MR_Plane3d_OffsetMutablePtr(MR_Plane3d *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_Plane3f_Set_d(MR_Plane3f *_this, float value)
MRC_API MR_Plane3f * MR_neg_MR_Plane3f(const MR_Plane3f *_this)
MRC_API MR_Plane3f * MR_Plane3f_Construct_float(const MR_Plane3f *p)
MRC_API MR_Vector3f * MR_Plane3f_GetMutable_n(MR_Plane3f *_this)
MRC_API double MR_Plane3d_distance(const MR_Plane3d *_this, const MR_Vector3d *x)
#define MRC_API
Definition exports.h:11
Definition MRVector3.h:60
Definition MRVector3.h:51