MeshLib C Docs
Loading...
Searching...
No Matches
MRLineSegm.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 <stddef.h>
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13
14// a segment of straight dimensional line
18
19// a segment of straight dimensional line
23
24// a segment of straight dimensional line
28
29// a segment of straight dimensional line
33
38
42
47
52
56
61
65
70
73
76
81
87
90
93
99
104
109
114
119
124
128
133
138
142
147
151
156
159
162
167
173
176
179
185
190
195
200
205
210
214
219
224
228
233
237
242
245
248
253
259
262
265
271
276
281
286
291
296
300
305
310
314
319
323
328
331
334
339
345
348
351
357
362
367
372
377
378#ifdef __cplusplus
379} // extern "C"
380#endif
struct MR_LineSegm3f MR_LineSegm3f
Definition MRFeatures.h:18
struct MR_LineSegm2f MR_LineSegm2f
Definition MRIntersection.h:9
MRC_API void MR_LineSegm2d_Set_a(MR_LineSegm2d *_this, MR_Vector2d value)
MRC_API const MR_Vector2f * MR_LineSegm2f_Get_a(const MR_LineSegm2f *_this)
MRC_API MR_LineSegm2d * MR_LineSegm2d_AssignFromAnother(MR_LineSegm2d *_this, const MR_LineSegm2d *_other)
MRC_API MR_LineSegm3d * MR_LineSegm3d_DefaultConstruct(void)
MRC_API MR_LineSegm3d * MR_LineSegm3d_Construct(const MR_Vector3d *a, const MR_Vector3d *b)
MRC_API MR_Vector2f MR_LineSegm2f_call(const MR_LineSegm2f *_this, float param)
MRC_API MR_LineSegm3f * MR_LineSegm3f_ConstructFromAnother(const MR_LineSegm3f *_other)
MRC_API float MR_LineSegm3f_length(const MR_LineSegm3f *_this)
MRC_API MR_LineSegm2f * MR_LineSegm2f_AssignFromAnother(MR_LineSegm2f *_this, const MR_LineSegm2f *_other)
MRC_API const MR_Vector3f * MR_LineSegm3f_Get_a(const MR_LineSegm3f *_this)
MRC_API void MR_LineSegm3f_Set_a(MR_LineSegm3f *_this, MR_Vector3f value)
MRC_API MR_Vector2d * MR_LineSegm2d_GetMutable_b(MR_LineSegm2d *_this)
MRC_API MR_Vector3d MR_LineSegm3d_call(const MR_LineSegm3d *_this, double param)
MRC_API const MR_LineSegm2d * MR_LineSegm2d_OffsetPtr(const MR_LineSegm2d *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_LineSegm3d_lengthSq(const MR_LineSegm3d *_this)
MRC_API void MR_LineSegm2d_Set_b(MR_LineSegm2d *_this, MR_Vector2d value)
struct MR_LineSegm3d MR_LineSegm3d
Definition MRLineSegm.h:32
MRC_API void MR_LineSegm2d_Destroy(const MR_LineSegm2d *_this)
Destroys a heap-allocated instance of MR_LineSegm2d. Does nothing if the pointer is null.
MRC_API MR_Vector2d MR_LineSegm2d_dir(const MR_LineSegm2d *_this)
MRC_API MR_Vector3d * MR_LineSegm3d_GetMutable_a(MR_LineSegm3d *_this)
MRC_API MR_Vector3f MR_LineSegm3f_call(const MR_LineSegm3f *_this, float param)
MRC_API const MR_LineSegm3f * MR_LineSegm3f_OffsetPtr(const MR_LineSegm3f *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_LineSegm3f * MR_LineSegm3f_OffsetMutablePtr(MR_LineSegm3f *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_LineSegm3d * MR_LineSegm3d_OffsetMutablePtr(MR_LineSegm3d *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_LineSegm3f * MR_LineSegm3f_DefaultConstructArray(size_t num_elems)
MRC_API MR_LineSegm2f * MR_LineSegm2f_Construct(const MR_Vector2f *a, const MR_Vector2f *b)
MRC_API MR_Vector2f MR_LineSegm2f_dir(const MR_LineSegm2f *_this)
MRC_API void MR_LineSegm2f_Set_b(MR_LineSegm2f *_this, MR_Vector2f value)
MRC_API MR_Vector3f * MR_LineSegm3f_GetMutable_a(MR_LineSegm3f *_this)
MRC_API MR_LineSegm3d * MR_LineSegm3d_DefaultConstructArray(size_t num_elems)
MRC_API const MR_Vector3f * MR_LineSegm3f_Get_b(const MR_LineSegm3f *_this)
MRC_API void MR_LineSegm3d_Set_b(MR_LineSegm3d *_this, MR_Vector3d value)
MRC_API void MR_LineSegm3f_Set_b(MR_LineSegm3f *_this, MR_Vector3f value)
MRC_API MR_Vector2d MR_LineSegm2d_call(const MR_LineSegm2d *_this, double param)
MRC_API const MR_Vector3d * MR_LineSegm3d_Get_b(const MR_LineSegm3d *_this)
MRC_API MR_LineSegm3f * MR_LineSegm3f_Construct(const MR_Vector3f *a, const MR_Vector3f *b)
MRC_API void MR_LineSegm2f_DestroyArray(const MR_LineSegm2f *_this)
Destroys a heap-allocated array of MR_LineSegm2f. Does nothing if the pointer is null.
MRC_API MR_Vector3d MR_LineSegm3d_dir(const MR_LineSegm3d *_this)
MRC_API void MR_LineSegm3f_DestroyArray(const MR_LineSegm3f *_this)
Destroys a heap-allocated array of MR_LineSegm3f. Does nothing if the pointer is null.
MRC_API float MR_LineSegm2f_length(const MR_LineSegm2f *_this)
MRC_API MR_LineSegm2f * MR_LineSegm2f_DefaultConstructArray(size_t num_elems)
MRC_API MR_LineSegm3f * MR_LineSegm3f_DefaultConstruct(void)
MRC_API MR_Vector2f * MR_LineSegm2f_GetMutable_b(MR_LineSegm2f *_this)
MRC_API MR_LineSegm3d * MR_LineSegm3d_ConstructFromAnother(const MR_LineSegm3d *_other)
MRC_API MR_LineSegm3d * MR_LineSegm3d_AssignFromAnother(MR_LineSegm3d *_this, const MR_LineSegm3d *_other)
MRC_API float MR_LineSegm2f_lengthSq(const MR_LineSegm2f *_this)
MRC_API double MR_LineSegm2d_length(const MR_LineSegm2d *_this)
MRC_API void MR_LineSegm2d_DestroyArray(const MR_LineSegm2d *_this)
Destroys a heap-allocated array of MR_LineSegm2d. Does nothing if the pointer is null.
MRC_API void MR_LineSegm3d_Destroy(const MR_LineSegm3d *_this)
Destroys a heap-allocated instance of MR_LineSegm3d. Does nothing if the pointer is null.
MRC_API MR_Vector2d * MR_LineSegm2d_GetMutable_a(MR_LineSegm2d *_this)
MRC_API MR_LineSegm2f * MR_LineSegm2f_DefaultConstruct(void)
MRC_API void MR_LineSegm3d_DestroyArray(const MR_LineSegm3d *_this)
Destroys a heap-allocated array of MR_LineSegm3d. Does nothing if the pointer is null.
MRC_API double MR_LineSegm3d_length(const MR_LineSegm3d *_this)
MRC_API const MR_Vector2d * MR_LineSegm2d_Get_b(const MR_LineSegm2d *_this)
MRC_API MR_LineSegm3f * MR_LineSegm3f_AssignFromAnother(MR_LineSegm3f *_this, const MR_LineSegm3f *_other)
MRC_API MR_LineSegm2f * MR_LineSegm2f_ConstructFromAnother(const MR_LineSegm2f *_other)
MRC_API void MR_LineSegm3f_Destroy(const MR_LineSegm3f *_this)
Destroys a heap-allocated instance of MR_LineSegm3f. Does nothing if the pointer is null.
MRC_API float MR_LineSegm3f_lengthSq(const MR_LineSegm3f *_this)
MRC_API const MR_Vector3d * MR_LineSegm3d_Get_a(const MR_LineSegm3d *_this)
MRC_API void MR_LineSegm3d_Set_a(MR_LineSegm3d *_this, MR_Vector3d value)
MRC_API double MR_LineSegm2d_lengthSq(const MR_LineSegm2d *_this)
MRC_API MR_LineSegm2f * MR_LineSegm2f_OffsetMutablePtr(MR_LineSegm2f *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_Vector3f MR_LineSegm3f_dir(const MR_LineSegm3f *_this)
MRC_API const MR_Vector2f * MR_LineSegm2f_Get_b(const MR_LineSegm2f *_this)
MRC_API const MR_Vector2d * MR_LineSegm2d_Get_a(const MR_LineSegm2d *_this)
MRC_API MR_LineSegm2d * MR_LineSegm2d_DefaultConstruct(void)
MRC_API MR_Vector3f * MR_LineSegm3f_GetMutable_b(MR_LineSegm3f *_this)
MRC_API MR_LineSegm2d * MR_LineSegm2d_DefaultConstructArray(size_t num_elems)
MRC_API void MR_LineSegm2f_Destroy(const MR_LineSegm2f *_this)
Destroys a heap-allocated instance of MR_LineSegm2f. Does nothing if the pointer is null.
MRC_API MR_Vector2f * MR_LineSegm2f_GetMutable_a(MR_LineSegm2f *_this)
MRC_API void MR_LineSegm2f_Set_a(MR_LineSegm2f *_this, MR_Vector2f value)
struct MR_LineSegm2d MR_LineSegm2d
Definition MRLineSegm.h:22
MRC_API const MR_LineSegm2f * MR_LineSegm2f_OffsetPtr(const MR_LineSegm2f *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_LineSegm2d * MR_LineSegm2d_Construct(const MR_Vector2d *a, const MR_Vector2d *b)
MRC_API MR_LineSegm2d * MR_LineSegm2d_OffsetMutablePtr(MR_LineSegm2d *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_LineSegm2d * MR_LineSegm2d_ConstructFromAnother(const MR_LineSegm2d *_other)
MRC_API const MR_LineSegm3d * MR_LineSegm3d_OffsetPtr(const MR_LineSegm3d *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_Vector3d * MR_LineSegm3d_GetMutable_b(MR_LineSegm3d *_this)
#define MRC_API
Definition exports.h:11
Definition MRVector2.h:53
Definition MRVector2.h:45
Definition MRVector3.h:61
Definition MRVector3.h:52