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
17
18// a segment of straight dimensional line
21
22// a segment of straight dimensional line
25
26// a segment of straight dimensional line
29
34
38
43
48
52
57
61
66
69
72
77
83
86
89
95
100
105
110
115
120
124
129
134
138
143
147
152
155
158
163
169
172
175
181
186
191
196
201
206
210
215
220
224
229
233
238
241
244
249
255
258
261
267
272
277
282
287
292
296
301
306
310
315
319
324
327
330
335
341
344
347
353
358
363
368
373
374#ifdef __cplusplus
375} // extern "C"
376#endif
struct MR_LineSegm3f MR_LineSegm3f
Definition MRFeatures.h:19
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
Generated from class MR::LineSegm3d.
Definition MRLineSegm.h:28
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
Generated from class MR::LineSegm2d.
Definition MRLineSegm.h:20
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:52
Definition MRVector2.h:44
Definition MRVector3.h:60
Definition MRVector3.h:51