MeshLib C Docs
Loading...
Searching...
No Matches
MRCylinder3.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/exports.h>
4
5#include <stddef.h>
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11typedef struct MR_Line3d MR_Line3d; // Defined in `#include <MRCMesh/MRLine.h>`.
12typedef struct MR_Line3f MR_Line3f; // Defined in `#include <MRCMesh/MRLine.h>`.
13typedef struct MR_Vector3d MR_Vector3d; // Defined in `#include <MRCMesh/MRVector3.h>`.
14typedef struct MR_Vector3f MR_Vector3f; // Defined in `#include <MRCMesh/MRVector3.h>`.
15
16
17// A class describing a cylinder as a mathematical object.A cylinder is represented by a centerline, a radius, and a length.template <typename T>
18// TODO: Cylinder3 could be infinite. For example for infinite Cylinder3 we could use negative length or length = -1
22
23// A class describing a cylinder as a mathematical object.A cylinder is represented by a centerline, a radius, and a length.template <typename T>
24// TODO: Cylinder3 could be infinite. For example for infinite Cylinder3 we could use negative length or length = -1
28
33
40
45
50
55
60
65
70
75
79
84
88
92
98
105MRC_API MR_Cylinder3f *MR_Cylinder3f_Construct_4(const MR_Vector3f *inCenter, const MR_Vector3f *inDirectoin, float inRadius, float inLength);
106
111MRC_API MR_Cylinder3f *MR_Cylinder3f_Construct_3(const MR_Line3f *inAxis, float inRadius, float inLength);
112
115
118
126
131
136
141
146
151
158
163
168
173
178
183
188
193
197
202
206
210
216
223MRC_API MR_Cylinder3d *MR_Cylinder3d_Construct_4(const MR_Vector3d *inCenter, const MR_Vector3d *inDirectoin, double inRadius, double inLength);
224
229MRC_API MR_Cylinder3d *MR_Cylinder3d_Construct_3(const MR_Line3d *inAxis, double inRadius, double inLength);
230
233
236
244
249
254
259
264
265#ifdef __cplusplus
266} // extern "C"
267#endif
struct MR_Line3d MR_Line3d
Definition MRBestFit.h:16
struct MR_Line3f MR_Line3f
Definition MRBestFit.h:17
MRC_API void MR_Cylinder3f_Destroy(const MR_Cylinder3f *_this)
Destroys a heap-allocated instance of MR_Cylinder3f. Does nothing if the pointer is null.
MRC_API const MR_Vector3f * MR_Cylinder3f_direction_const(const MR_Cylinder3f *_this)
MRC_API const MR_Cylinder3d * MR_Cylinder3d_OffsetPtr(const MR_Cylinder3d *ptr, ptrdiff_t i)
struct MR_Cylinder3f MR_Cylinder3f
Definition MRCylinder3.h:21
MRC_API const MR_Line3d * MR_Cylinder3d_Get_mainAxis(const MR_Cylinder3d *_this)
MRC_API MR_Vector3d * MR_Cylinder3d_center(MR_Cylinder3d *_this)
MRC_API MR_Cylinder3d * MR_Cylinder3d_Construct_4(const MR_Vector3d *inCenter, const MR_Vector3d *inDirectoin, double inRadius, double inLength)
MRC_API MR_Vector3f * MR_Cylinder3f_center(MR_Cylinder3f *_this)
MRC_API MR_Cylinder3f * MR_Cylinder3f_AssignFromAnother(MR_Cylinder3f *_this, const MR_Cylinder3f *_other)
MRC_API MR_Cylinder3d * MR_Cylinder3d_DefaultConstructArray(size_t num_elems)
MRC_API const double * MR_Cylinder3d_Get_radius(const MR_Cylinder3d *_this)
MRC_API MR_Line3f * MR_Cylinder3f_GetMutable_mainAxis(MR_Cylinder3f *_this)
MRC_API void MR_Cylinder3d_Destroy(const MR_Cylinder3d *_this)
Destroys a heap-allocated instance of MR_Cylinder3d. Does nothing if the pointer is null.
MRC_API const double * MR_Cylinder3d_Get_length(const MR_Cylinder3d *_this)
MRC_API MR_Cylinder3d * MR_Cylinder3d_OffsetMutablePtr(MR_Cylinder3d *ptr, ptrdiff_t i)
MRC_API double * MR_Cylinder3d_GetMutable_radius(MR_Cylinder3d *_this)
MRC_API MR_Cylinder3f * MR_Cylinder3f_OffsetMutablePtr(MR_Cylinder3f *ptr, ptrdiff_t i)
MRC_API MR_Line3d * MR_Cylinder3d_GetMutable_mainAxis(MR_Cylinder3d *_this)
MRC_API float * MR_Cylinder3f_GetMutable_length(MR_Cylinder3f *_this)
MRC_API const float * MR_Cylinder3f_Get_radius(const MR_Cylinder3f *_this)
MRC_API const MR_Vector3d * MR_Cylinder3d_center_const(const MR_Cylinder3d *_this)
MRC_API float * MR_Cylinder3f_GetMutable_radius(MR_Cylinder3f *_this)
MRC_API void MR_Cylinder3f_Set_length(MR_Cylinder3f *_this, float value)
MRC_API MR_Cylinder3f * MR_Cylinder3f_Construct_4(const MR_Vector3f *inCenter, const MR_Vector3f *inDirectoin, float inRadius, float inLength)
MRC_API void MR_Cylinder3f_Set_mainAxis(MR_Cylinder3f *_this, const MR_Line3f *value)
MRC_API MR_Vector3f * MR_Cylinder3f_direction(MR_Cylinder3f *_this)
MRC_API MR_Cylinder3d * MR_Cylinder3d_AssignFromAnother(MR_Cylinder3d *_this, const MR_Cylinder3d *_other)
MRC_API MR_Cylinder3f * MR_Cylinder3f_DefaultConstructArray(size_t num_elems)
MRC_API const MR_Line3f * MR_Cylinder3f_Get_mainAxis(const MR_Cylinder3f *_this)
MRC_API MR_Cylinder3f * MR_Cylinder3f_DefaultConstruct(void)
MRC_API MR_Cylinder3f * MR_Cylinder3f_Construct_3(const MR_Line3f *inAxis, float inRadius, float inLength)
struct MR_Cylinder3d MR_Cylinder3d
Definition MRCylinder3.h:27
MRC_API void MR_Cylinder3d_Set_length(MR_Cylinder3d *_this, double value)
MRC_API void MR_Cylinder3d_DestroyArray(const MR_Cylinder3d *_this)
Destroys a heap-allocated array of MR_Cylinder3d. Does nothing if the pointer is null.
MRC_API MR_Cylinder3d * MR_Cylinder3d_Construct_3(const MR_Line3d *inAxis, double inRadius, double inLength)
MRC_API void MR_Cylinder3f_Set_radius(MR_Cylinder3f *_this, float value)
MRC_API const float * MR_Cylinder3f_Get_length(const MR_Cylinder3f *_this)
MRC_API MR_Cylinder3d * MR_Cylinder3d_DefaultConstruct(void)
MRC_API const MR_Cylinder3f * MR_Cylinder3f_OffsetPtr(const MR_Cylinder3f *ptr, ptrdiff_t i)
MRC_API double * MR_Cylinder3d_GetMutable_length(MR_Cylinder3d *_this)
MRC_API MR_Vector3d * MR_Cylinder3d_direction(MR_Cylinder3d *_this)
MRC_API const MR_Vector3d * MR_Cylinder3d_direction_const(const MR_Cylinder3d *_this)
MRC_API const MR_Vector3f * MR_Cylinder3f_center_const(const MR_Cylinder3f *_this)
MRC_API void MR_Cylinder3d_Set_mainAxis(MR_Cylinder3d *_this, const MR_Line3d *value)
MRC_API MR_Cylinder3d * MR_Cylinder3d_ConstructFromAnother(const MR_Cylinder3d *_other)
MRC_API void MR_Cylinder3f_DestroyArray(const MR_Cylinder3f *_this)
Destroys a heap-allocated array of MR_Cylinder3f. Does nothing if the pointer is null.
MRC_API MR_Cylinder3f * MR_Cylinder3f_ConstructFromAnother(const MR_Cylinder3f *_other)
MRC_API void MR_Cylinder3d_Set_radius(MR_Cylinder3d *_this, double value)
#define MRC_API
Definition exports.h:11
Definition MRVector3.h:61
Definition MRVector3.h:52