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
16typedef struct MR_Sphere2f MR_Sphere2f;
17
19typedef struct MR_Sphere2d MR_Sphere2d;
20
22typedef struct MR_Sphere3f MR_Sphere3f;
23
25typedef struct MR_Sphere3d MR_Sphere3d;
26
31
35
40
44MRC_API const float *MR_Sphere2f_Get_radius(const MR_Sphere2f *_this);
45
48MRC_API void MR_Sphere2f_Set_radius(MR_Sphere2f *_this, float value);
49
54
58
63
65MRC_API const MR_Sphere2f *MR_Sphere2f_OffsetPtr(const MR_Sphere2f *ptr, ptrdiff_t i);
66
69
74
79
82
85
91
97
104
110
115
120
124
129
133MRC_API const double *MR_Sphere2d_Get_radius(const MR_Sphere2d *_this);
134
137MRC_API void MR_Sphere2d_Set_radius(MR_Sphere2d *_this, double value);
138
143
147
152
154MRC_API const MR_Sphere2d *MR_Sphere2d_OffsetPtr(const MR_Sphere2d *ptr, ptrdiff_t i);
155
158
163
168
171
174
180
186
193
199
204
209
213
218
222MRC_API const float *MR_Sphere3f_Get_radius(const MR_Sphere3f *_this);
223
227
232
236
241
243MRC_API const MR_Sphere3f *MR_Sphere3f_OffsetPtr(const MR_Sphere3f *ptr, ptrdiff_t i);
244
247
252
257
262
265
268
274
280
287
293
298
303
307
312
316MRC_API const double *MR_Sphere3d_Get_radius(const MR_Sphere3d *_this);
317
320MRC_API void MR_Sphere3d_Set_radius(MR_Sphere3d *_this, double value);
321
326
330
335
337MRC_API const MR_Sphere3d *MR_Sphere3d_OffsetPtr(const MR_Sphere3d *ptr, ptrdiff_t i);
338
341
346
351
354
357
363
369
376
382
387
388#ifdef __cplusplus
389} // extern "C"
390#endif
struct MR_Sphere3f MR_Sphere3f
Definition MRFeatures.h:21
MRC_API double * MR_Sphere2d_GetMutable_radius(MR_Sphere2d *_this)
MRC_API MR_Sphere3f * MR_Sphere3f_OffsetMutablePtr(MR_Sphere3f *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_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)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API MR_Sphere2f * MR_Sphere2f_AssignFromAnother(MR_Sphere2f *_this, const MR_Sphere2f *_other)
struct MR_Sphere2f MR_Sphere2f
Generated from class MR::Sphere2f.
Definition MRSphere.h:16
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)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
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)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API const MR_Sphere3d * MR_Sphere3d_OffsetPtr(const MR_Sphere3d *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_Sphere2d * MR_Sphere2d_AssignFromAnother(MR_Sphere2d *_this, const MR_Sphere2d *_other)
MRC_API MR_Sphere2f * MR_Sphere2f_OffsetMutablePtr(MR_Sphere2f *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_Sphere3f * MR_Sphere3f_Construct_MR_Vector3f(const MR_Sphere3f *l)
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)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
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
Generated from class MR::Sphere3d.
Definition MRSphere.h:25
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)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
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
Generated from class MR::Sphere2d.
Definition MRSphere.h:19
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:52
Definition MRVector2.h:44
Definition MRVector3.h:60
Definition MRVector3.h:51