MeshLib C Docs
Loading...
Searching...
No Matches
MRSphere.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMesh/MRVector2.h>
4#include <MRCMesh/MRVector3.h>
5#include <MRCMisc/exports.h>
6
7#include <stdbool.h>
8#include <stddef.h>
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14
17typedef struct MR_Sphere2f MR_Sphere2f;
18
21typedef struct MR_Sphere2d MR_Sphere2d;
22
25typedef struct MR_Sphere3f MR_Sphere3f;
26
29typedef struct MR_Sphere3d MR_Sphere3d;
30
35
41
46
50MRC_API const float *MR_Sphere2f_Get_radius(const MR_Sphere2f *_this);
51
55MRC_API void MR_Sphere2f_Set_radius(MR_Sphere2f *_this, float value);
56
61
65
70
73MRC_API const MR_Sphere2f *MR_Sphere2f_OffsetPtr(const MR_Sphere2f *ptr, ptrdiff_t i);
74
78
84
90
93
96
104
110
117
123
128
133
139
144
148MRC_API const double *MR_Sphere2d_Get_radius(const MR_Sphere2d *_this);
149
153MRC_API void MR_Sphere2d_Set_radius(MR_Sphere2d *_this, double value);
154
159
163
168
171MRC_API const MR_Sphere2d *MR_Sphere2d_OffsetPtr(const MR_Sphere2d *ptr, ptrdiff_t i);
172
176
182
188
191
194
202
208
215
221
226
231
237
242
246MRC_API const float *MR_Sphere3f_Get_radius(const MR_Sphere3f *_this);
247
252
257
261
266
269MRC_API const MR_Sphere3f *MR_Sphere3f_OffsetPtr(const MR_Sphere3f *ptr, ptrdiff_t i);
270
274
280
286
289
292
300
306
313
319
324
329
335
340
344MRC_API const double *MR_Sphere3d_Get_radius(const MR_Sphere3d *_this);
345
349MRC_API void MR_Sphere3d_Set_radius(MR_Sphere3d *_this, double value);
350
355
359
364
367MRC_API const MR_Sphere3d *MR_Sphere3d_OffsetPtr(const MR_Sphere3d *ptr, ptrdiff_t i);
368
372
378
384
387
390
398
404
411
417
422
423#ifdef __cplusplus
424} // extern "C"
425#endif
struct MR_Sphere3f MR_Sphere3f
Definition MRFeatures.h:20
MRC_API double * MR_Sphere2d_GetMutable_radius(MR_Sphere2d *_this)
MRC_API MR_Sphere3f * MR_Sphere3f_OffsetMutablePtr(MR_Sphere3f *ptr, ptrdiff_t i)
MRC_API void MR_Sphere2d_Set_center(MR_Sphere2d *_this, MR_Vector2d value)
MRC_API void MR_Sphere3f_DestroyArray(const MR_Sphere3f *_this)
Destroys a heap-allocated array of MR_Sphere3f. Does nothing if the pointer is null.
MRC_API MR_Vector2f MR_Sphere2f_project(const MR_Sphere2f *_this, const MR_Vector2f *x)
MRC_API double MR_Sphere2d_distance(const MR_Sphere2d *_this, const MR_Vector2d *x)
MRC_API MR_Vector3f * MR_Sphere3f_GetMutable_center(MR_Sphere3f *_this)
MRC_API MR_Sphere3d * MR_Sphere3d_OffsetMutablePtr(MR_Sphere3d *ptr, ptrdiff_t i)
MRC_API MR_Sphere2f * MR_Sphere2f_AssignFromAnother(MR_Sphere2f *_this, const MR_Sphere2f *_other)
struct MR_Sphere2f MR_Sphere2f
Definition MRSphere.h:17
MRC_API float * MR_Sphere3f_GetMutable_radius(MR_Sphere3f *_this)
MRC_API const MR_Vector2f * MR_Sphere2f_Get_center(const MR_Sphere2f *_this)
MRC_API MR_Sphere2d * MR_Sphere2d_ConstructFromAnother(const MR_Sphere2d *_other)
MRC_API MR_Vector2d * MR_Sphere2d_GetMutable_center(MR_Sphere2d *_this)
MRC_API const double * MR_Sphere3d_Get_radius(const MR_Sphere3d *_this)
MRC_API const MR_Vector2d * MR_Sphere2d_Get_center(const MR_Sphere2d *_this)
MRC_API const MR_Sphere2d * MR_Sphere2d_OffsetPtr(const MR_Sphere2d *ptr, ptrdiff_t i)
MRC_API MR_Sphere3f * MR_Sphere3f_AssignFromAnother(MR_Sphere3f *_this, const MR_Sphere3f *_other)
MRC_API void MR_Sphere3f_Set_center(MR_Sphere3f *_this, MR_Vector3f value)
MRC_API MR_Sphere3d * MR_Sphere3d_ConstructFromAnother(const MR_Sphere3d *_other)
MRC_API void MR_Sphere2d_DestroyArray(const MR_Sphere2d *_this)
Destroys a heap-allocated array of MR_Sphere2d. Does nothing if the pointer is null.
MRC_API MR_Sphere2f * MR_Sphere2f_DefaultConstruct(void)
MRC_API float MR_Sphere2f_distance(const MR_Sphere2f *_this, const MR_Vector2f *x)
MRC_API void MR_Sphere3d_DestroyArray(const MR_Sphere3d *_this)
Destroys a heap-allocated array of MR_Sphere3d. Does nothing if the pointer is null.
MRC_API MR_Sphere3d * MR_Sphere3d_AssignFromAnother(MR_Sphere3d *_this, const MR_Sphere3d *_other)
MRC_API bool MR_equal_MR_Sphere3f(const MR_Sphere3f *a, const MR_Sphere3f *b)
MRC_API void MR_Sphere2f_DestroyArray(const MR_Sphere2f *_this)
Destroys a heap-allocated array of MR_Sphere2f. Does nothing if the pointer is null.
MRC_API void MR_Sphere3f_Destroy(const MR_Sphere3f *_this)
Destroys a heap-allocated instance of MR_Sphere3f. Does nothing if the pointer is null.
MRC_API const MR_Vector3f * MR_Sphere3f_Get_center(const MR_Sphere3f *_this)
MRC_API bool MR_equal_MR_Sphere2d(const MR_Sphere2d *a, const MR_Sphere2d *b)
MRC_API double MR_Sphere2d_distanceSq(const MR_Sphere2d *_this, const MR_Vector2d *x)
MRC_API const MR_Sphere3f * MR_Sphere3f_OffsetPtr(const MR_Sphere3f *ptr, ptrdiff_t i)
MRC_API const MR_Sphere3d * MR_Sphere3d_OffsetPtr(const MR_Sphere3d *ptr, ptrdiff_t i)
MRC_API MR_Sphere2d * MR_Sphere2d_AssignFromAnother(MR_Sphere2d *_this, const MR_Sphere2d *_other)
MRC_API MR_Sphere2f * MR_Sphere2f_OffsetMutablePtr(MR_Sphere2f *ptr, ptrdiff_t i)
MRC_API float MR_Sphere3f_distanceSq(const MR_Sphere3f *_this, const MR_Vector3f *x)
MRC_API MR_Sphere2d * MR_Sphere2d_OffsetMutablePtr(MR_Sphere2d *ptr, ptrdiff_t i)
MRC_API MR_Sphere3f * MR_Sphere3f_Construct(const MR_Vector3f *c, float r)
MRC_API MR_Sphere3d * MR_Sphere3d_Construct(const MR_Vector3d *c, double r)
MRC_API MR_Sphere2d * MR_Sphere2d_Construct(const MR_Vector2d *c, double r)
MRC_API MR_Sphere3f * MR_Sphere3f_ConstructFromAnother(const MR_Sphere3f *_other)
MRC_API double MR_Sphere3d_distance(const MR_Sphere3d *_this, const MR_Vector3d *x)
MRC_API void MR_Sphere3d_Set_center(MR_Sphere3d *_this, MR_Vector3d value)
MRC_API void MR_Sphere2f_Destroy(const MR_Sphere2f *_this)
Destroys a heap-allocated instance of MR_Sphere2f. Does nothing if the pointer is null.
MRC_API MR_Sphere2d * MR_Sphere2d_DefaultConstructArray(size_t num_elems)
MRC_API MR_Vector3d MR_Sphere3d_project(const MR_Sphere3d *_this, const MR_Vector3d *x)
MRC_API const MR_Vector3d * MR_Sphere3d_Get_center(const MR_Sphere3d *_this)
MRC_API MR_Sphere3f * MR_Sphere3f_DefaultConstructArray(size_t num_elems)
MRC_API MR_Sphere2f * MR_Sphere2f_ConstructFromAnother(const MR_Sphere2f *_other)
MRC_API MR_Vector3d * MR_Sphere3d_GetMutable_center(MR_Sphere3d *_this)
MRC_API void MR_Sphere2f_Set_center(MR_Sphere2f *_this, MR_Vector2f value)
MRC_API void MR_Sphere2f_Set_radius(MR_Sphere2f *_this, float value)
MRC_API double * MR_Sphere3d_GetMutable_radius(MR_Sphere3d *_this)
MRC_API MR_Sphere3d * MR_Sphere3d_DefaultConstruct(void)
MRC_API MR_Sphere2d * MR_Sphere2d_DefaultConstruct(void)
MRC_API float MR_Sphere2f_distanceSq(const MR_Sphere2f *_this, const MR_Vector2f *x)
MRC_API MR_Sphere3d * MR_Sphere3d_DefaultConstructArray(size_t num_elems)
MRC_API float MR_Sphere3f_distance(const MR_Sphere3f *_this, const MR_Vector3f *x)
MRC_API void MR_Sphere2d_Set_radius(MR_Sphere2d *_this, double value)
MRC_API void MR_Sphere3d_Destroy(const MR_Sphere3d *_this)
Destroys a heap-allocated instance of MR_Sphere3d. Does nothing if the pointer is null.
MRC_API MR_Vector3f MR_Sphere3f_project(const MR_Sphere3f *_this, const MR_Vector3f *x)
MRC_API double MR_Sphere3d_distanceSq(const MR_Sphere3d *_this, const MR_Vector3d *x)
struct MR_Sphere3d MR_Sphere3d
Definition MRSphere.h:29
MRC_API MR_Sphere2f * MR_Sphere2f_Construct(const MR_Vector2f *c, float r)
MRC_API MR_Vector2f * MR_Sphere2f_GetMutable_center(MR_Sphere2f *_this)
MRC_API const MR_Sphere2f * MR_Sphere2f_OffsetPtr(const MR_Sphere2f *ptr, ptrdiff_t i)
MRC_API MR_Vector2d MR_Sphere2d_project(const MR_Sphere2d *_this, const MR_Vector2d *x)
MRC_API const float * MR_Sphere3f_Get_radius(const MR_Sphere3f *_this)
MRC_API MR_Sphere2f * MR_Sphere2f_DefaultConstructArray(size_t num_elems)
MRC_API MR_Sphere3f * MR_Sphere3f_DefaultConstruct(void)
MRC_API bool MR_equal_MR_Sphere3d(const MR_Sphere3d *a, const MR_Sphere3d *b)
MRC_API void MR_Sphere2d_Destroy(const MR_Sphere2d *_this)
Destroys a heap-allocated instance of MR_Sphere2d. Does nothing if the pointer is null.
MRC_API const float * MR_Sphere2f_Get_radius(const MR_Sphere2f *_this)
MRC_API bool MR_equal_MR_Sphere2f(const MR_Sphere2f *a, const MR_Sphere2f *b)
MRC_API float * MR_Sphere2f_GetMutable_radius(MR_Sphere2f *_this)
MRC_API void MR_Sphere3f_Set_radius(MR_Sphere3f *_this, float value)
struct MR_Sphere2d MR_Sphere2d
Definition MRSphere.h:21
MRC_API const double * MR_Sphere2d_Get_radius(const MR_Sphere2d *_this)
MRC_API void MR_Sphere3d_Set_radius(MR_Sphere3d *_this, double value)
#define MRC_API
Definition exports.h:11
Definition MRVector2.h:53
Definition MRVector2.h:45
Definition MRVector3.h:61
Definition MRVector3.h:52