MeshLib C Docs
Loading...
Searching...
No Matches
MRLineSegm.h File Reference
#include <MRCMesh/MRVector2.h>
#include <MRCMesh/MRVector3.h>
#include <MRCMisc/exports.h>
#include <stdbool.h>
#include <stddef.h>

Go to the source code of this file.

Typedefs

typedef struct MR_Line2d MR_Line2d
 
typedef struct MR_Line2f MR_Line2f
 
typedef struct MR_LineSegm2f MR_LineSegm2f
 
typedef struct MR_LineSegm2d MR_LineSegm2d
 
typedef struct MR_LineSegm3f MR_LineSegm3f
 
typedef struct MR_LineSegm3d MR_LineSegm3d
 

Functions

MRC_API const MR_Vector2fMR_LineSegm2f_Get_a (const MR_LineSegm2f *_this)
 
MRC_API void MR_LineSegm2f_Set_a (MR_LineSegm2f *_this, MR_Vector2f value)
 
MRC_API MR_Vector2fMR_LineSegm2f_GetMutable_a (MR_LineSegm2f *_this)
 
MRC_API const MR_Vector2fMR_LineSegm2f_Get_b (const MR_LineSegm2f *_this)
 
MRC_API void MR_LineSegm2f_Set_b (MR_LineSegm2f *_this, MR_Vector2f value)
 
MRC_API MR_Vector2fMR_LineSegm2f_GetMutable_b (MR_LineSegm2f *_this)
 
MRC_API MR_LineSegm2fMR_LineSegm2f_DefaultConstruct (void)
 
MRC_API MR_LineSegm2fMR_LineSegm2f_DefaultConstructArray (size_t num_elems)
 
MRC_API const MR_LineSegm2fMR_LineSegm2f_OffsetPtr (const MR_LineSegm2f *ptr, ptrdiff_t i)
 
MRC_API MR_LineSegm2fMR_LineSegm2f_OffsetMutablePtr (MR_LineSegm2f *ptr, ptrdiff_t i)
 
MRC_API MR_LineSegm2fMR_LineSegm2f_ConstructFromAnother (const MR_LineSegm2f *_other)
 
MRC_API MR_LineSegm2fMR_LineSegm2f_Construct (const MR_Vector2f *a, const MR_Vector2f *b)
 
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 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_LineSegm2fMR_LineSegm2f_AssignFromAnother (MR_LineSegm2f *_this, const MR_LineSegm2f *_other)
 
MRC_API MR_Vector2f MR_LineSegm2f_dir (const MR_LineSegm2f *_this)
 
MRC_API float MR_LineSegm2f_lengthSq (const MR_LineSegm2f *_this)
 
MRC_API float MR_LineSegm2f_length (const MR_LineSegm2f *_this)
 
MRC_API MR_Vector2f MR_LineSegm2f_call (const MR_LineSegm2f *_this, float param)
 
MRC_API const MR_Vector2dMR_LineSegm2d_Get_a (const MR_LineSegm2d *_this)
 
MRC_API void MR_LineSegm2d_Set_a (MR_LineSegm2d *_this, MR_Vector2d value)
 
MRC_API MR_Vector2dMR_LineSegm2d_GetMutable_a (MR_LineSegm2d *_this)
 
MRC_API const MR_Vector2dMR_LineSegm2d_Get_b (const MR_LineSegm2d *_this)
 
MRC_API void MR_LineSegm2d_Set_b (MR_LineSegm2d *_this, MR_Vector2d value)
 
MRC_API MR_Vector2dMR_LineSegm2d_GetMutable_b (MR_LineSegm2d *_this)
 
MRC_API MR_LineSegm2dMR_LineSegm2d_DefaultConstruct (void)
 
MRC_API MR_LineSegm2dMR_LineSegm2d_DefaultConstructArray (size_t num_elems)
 
MRC_API const MR_LineSegm2dMR_LineSegm2d_OffsetPtr (const MR_LineSegm2d *ptr, ptrdiff_t i)
 
MRC_API MR_LineSegm2dMR_LineSegm2d_OffsetMutablePtr (MR_LineSegm2d *ptr, ptrdiff_t i)
 
MRC_API MR_LineSegm2dMR_LineSegm2d_ConstructFromAnother (const MR_LineSegm2d *_other)
 
MRC_API MR_LineSegm2dMR_LineSegm2d_Construct (const MR_Vector2d *a, const MR_Vector2d *b)
 
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 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 MR_LineSegm2dMR_LineSegm2d_AssignFromAnother (MR_LineSegm2d *_this, const MR_LineSegm2d *_other)
 
MRC_API MR_Vector2d MR_LineSegm2d_dir (const MR_LineSegm2d *_this)
 
MRC_API double MR_LineSegm2d_lengthSq (const MR_LineSegm2d *_this)
 
MRC_API double MR_LineSegm2d_length (const MR_LineSegm2d *_this)
 
MRC_API MR_Vector2d MR_LineSegm2d_call (const MR_LineSegm2d *_this, double param)
 
MRC_API const MR_Vector3fMR_LineSegm3f_Get_a (const MR_LineSegm3f *_this)
 
MRC_API void MR_LineSegm3f_Set_a (MR_LineSegm3f *_this, MR_Vector3f value)
 
MRC_API MR_Vector3fMR_LineSegm3f_GetMutable_a (MR_LineSegm3f *_this)
 
MRC_API const MR_Vector3fMR_LineSegm3f_Get_b (const MR_LineSegm3f *_this)
 
MRC_API void MR_LineSegm3f_Set_b (MR_LineSegm3f *_this, MR_Vector3f value)
 
MRC_API MR_Vector3fMR_LineSegm3f_GetMutable_b (MR_LineSegm3f *_this)
 
MRC_API MR_LineSegm3fMR_LineSegm3f_DefaultConstruct (void)
 
MRC_API MR_LineSegm3fMR_LineSegm3f_DefaultConstructArray (size_t num_elems)
 
MRC_API const MR_LineSegm3fMR_LineSegm3f_OffsetPtr (const MR_LineSegm3f *ptr, ptrdiff_t i)
 
MRC_API MR_LineSegm3fMR_LineSegm3f_OffsetMutablePtr (MR_LineSegm3f *ptr, ptrdiff_t i)
 
MRC_API MR_LineSegm3fMR_LineSegm3f_ConstructFromAnother (const MR_LineSegm3f *_other)
 
MRC_API MR_LineSegm3fMR_LineSegm3f_Construct (const MR_Vector3f *a, const MR_Vector3f *b)
 
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 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 MR_LineSegm3fMR_LineSegm3f_AssignFromAnother (MR_LineSegm3f *_this, const MR_LineSegm3f *_other)
 
MRC_API MR_Vector3f MR_LineSegm3f_dir (const MR_LineSegm3f *_this)
 
MRC_API float MR_LineSegm3f_lengthSq (const MR_LineSegm3f *_this)
 
MRC_API float MR_LineSegm3f_length (const MR_LineSegm3f *_this)
 
MRC_API MR_Vector3f MR_LineSegm3f_call (const MR_LineSegm3f *_this, float param)
 
MRC_API const MR_Vector3dMR_LineSegm3d_Get_a (const MR_LineSegm3d *_this)
 
MRC_API void MR_LineSegm3d_Set_a (MR_LineSegm3d *_this, MR_Vector3d value)
 
MRC_API MR_Vector3dMR_LineSegm3d_GetMutable_a (MR_LineSegm3d *_this)
 
MRC_API const MR_Vector3dMR_LineSegm3d_Get_b (const MR_LineSegm3d *_this)
 
MRC_API void MR_LineSegm3d_Set_b (MR_LineSegm3d *_this, MR_Vector3d value)
 
MRC_API MR_Vector3dMR_LineSegm3d_GetMutable_b (MR_LineSegm3d *_this)
 
MRC_API MR_LineSegm3dMR_LineSegm3d_DefaultConstruct (void)
 
MRC_API MR_LineSegm3dMR_LineSegm3d_DefaultConstructArray (size_t num_elems)
 
MRC_API const MR_LineSegm3dMR_LineSegm3d_OffsetPtr (const MR_LineSegm3d *ptr, ptrdiff_t i)
 
MRC_API MR_LineSegm3dMR_LineSegm3d_OffsetMutablePtr (MR_LineSegm3d *ptr, ptrdiff_t i)
 
MRC_API MR_LineSegm3dMR_LineSegm3d_ConstructFromAnother (const MR_LineSegm3d *_other)
 
MRC_API MR_LineSegm3dMR_LineSegm3d_Construct (const MR_Vector3d *a, const MR_Vector3d *b)
 
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 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 MR_LineSegm3dMR_LineSegm3d_AssignFromAnother (MR_LineSegm3d *_this, const MR_LineSegm3d *_other)
 
MRC_API MR_Vector3d MR_LineSegm3d_dir (const MR_LineSegm3d *_this)
 
MRC_API double MR_LineSegm3d_lengthSq (const MR_LineSegm3d *_this)
 
MRC_API double MR_LineSegm3d_length (const MR_LineSegm3d *_this)
 
MRC_API MR_Vector3d MR_LineSegm3d_call (const MR_LineSegm3d *_this, double param)
 
MRC_API bool MR_doSegmentsIntersect_MR_Vector2f (const MR_LineSegm2f *x, const MR_LineSegm2f *y, float *xPos, float *yPos)
 
MRC_API bool MR_doSegmentsIntersect_MR_Vector2d (const MR_LineSegm2d *x, const MR_LineSegm2d *y, double *xPos, double *yPos)
 
MRC_API bool MR_doSegmentLineIntersect_MR_Vector2f (const MR_LineSegm2f *x, const MR_Line2f *y, float *xPos, float *yPos)
 
MRC_API bool MR_doSegmentLineIntersect_MR_Vector2d (const MR_LineSegm2d *x, const MR_Line2d *y, double *xPos, double *yPos)
 

Typedef Documentation

◆ MR_Line2d

typedef struct MR_Line2d MR_Line2d

◆ MR_Line2f

typedef struct MR_Line2f MR_Line2f

◆ MR_LineSegm2d

typedef struct MR_LineSegm2d MR_LineSegm2d

Generated from class MR::LineSegm2d. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).

◆ MR_LineSegm2f

typedef struct MR_LineSegm2f MR_LineSegm2f

Generated from class MR::LineSegm2f. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).

◆ MR_LineSegm3d

typedef struct MR_LineSegm3d MR_LineSegm3d

Generated from class MR::LineSegm3d. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).

◆ MR_LineSegm3f

typedef struct MR_LineSegm3f MR_LineSegm3f

Generated from class MR::LineSegm3f. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).

Function Documentation

◆ MR_doSegmentLineIntersect_MR_Vector2d()

MRC_API bool MR_doSegmentLineIntersect_MR_Vector2d ( const MR_LineSegm2d * x,
const MR_Line2d * y,
double * xPos,
double * yPos )

returns true if 2D line segment and 2D line intersect, optionally outputs intersection point as a parameter on both Generated from function MR::doSegmentLineIntersect<MR::Vector2d>. Parameter x can not be null. It is a single object. Parameter y can not be null. It is a single object. Parameter xPos defaults to a null pointer in C++. Parameter yPos defaults to a null pointer in C++.

◆ MR_doSegmentLineIntersect_MR_Vector2f()

MRC_API bool MR_doSegmentLineIntersect_MR_Vector2f ( const MR_LineSegm2f * x,
const MR_Line2f * y,
float * xPos,
float * yPos )

returns true if 2D line segment and 2D line intersect, optionally outputs intersection point as a parameter on both Generated from function MR::doSegmentLineIntersect<MR::Vector2f>. Parameter x can not be null. It is a single object. Parameter y can not be null. It is a single object. Parameter xPos defaults to a null pointer in C++. Parameter yPos defaults to a null pointer in C++.

◆ MR_doSegmentsIntersect_MR_Vector2d()

MRC_API bool MR_doSegmentsIntersect_MR_Vector2d ( const MR_LineSegm2d * x,
const MR_LineSegm2d * y,
double * xPos,
double * yPos )

returns true if two 2D segments intersect, optionally outputs intersection point as a parameter on both segments Generated from function MR::doSegmentsIntersect<MR::Vector2d>. Parameter x can not be null. It is a single object. Parameter y can not be null. It is a single object. Parameter xPos defaults to a null pointer in C++. Parameter yPos defaults to a null pointer in C++.

◆ MR_doSegmentsIntersect_MR_Vector2f()

MRC_API bool MR_doSegmentsIntersect_MR_Vector2f ( const MR_LineSegm2f * x,
const MR_LineSegm2f * y,
float * xPos,
float * yPos )

returns true if two 2D segments intersect, optionally outputs intersection point as a parameter on both segments Generated from function MR::doSegmentsIntersect<MR::Vector2f>. Parameter x can not be null. It is a single object. Parameter y can not be null. It is a single object. Parameter xPos defaults to a null pointer in C++. Parameter yPos defaults to a null pointer in C++.

◆ MR_LineSegm2d_AssignFromAnother()

MRC_API MR_LineSegm2d * MR_LineSegm2d_AssignFromAnother ( MR_LineSegm2d * _this,
const MR_LineSegm2d * _other )

Generated from method MR::LineSegm2d::operator=. Parameter _this can not be null. It is a single object. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it had previously.

◆ MR_LineSegm2d_call()

MRC_API MR_Vector2d MR_LineSegm2d_call ( const MR_LineSegm2d * _this,
double param )

returns point on the line, where param=0 returns a and param=1 returns b Generated from method MR::LineSegm2d::operator(). Parameter _this can not be null. It is a single object.

◆ MR_LineSegm2d_Construct()

MRC_API MR_LineSegm2d * MR_LineSegm2d_Construct ( const MR_Vector2d * a,
const MR_Vector2d * b )

Generated from constructor MR::LineSegm2d::LineSegm2d. Parameter a can not be null. It is a single object. The reference to the parameter a might be preserved in the constructed object. Parameter b can not be null. It is a single object. The reference to the parameter b might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_LineSegm2d_Destroy() to free it when you're done using it.

◆ MR_LineSegm2d_ConstructFromAnother()

MRC_API MR_LineSegm2d * MR_LineSegm2d_ConstructFromAnother ( const MR_LineSegm2d * _other)

Generated from constructor MR::LineSegm2d::LineSegm2d. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_LineSegm2d_Destroy() to free it when you're done using it.

◆ MR_LineSegm2d_DefaultConstruct()

MRC_API MR_LineSegm2d * MR_LineSegm2d_DefaultConstruct ( void )

Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_LineSegm2d_Destroy() to free it when you're done using it.

◆ MR_LineSegm2d_DefaultConstructArray()

MRC_API MR_LineSegm2d * MR_LineSegm2d_DefaultConstructArray ( size_t num_elems)

Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_LineSegm2d_DestroyArray(). Use MR_LineSegm2d_OffsetMutablePtr() and MR_LineSegm2d_OffsetPtr() to access the array elements.

◆ MR_LineSegm2d_Destroy()

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.

◆ MR_LineSegm2d_DestroyArray()

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.

◆ MR_LineSegm2d_dir()

MRC_API MR_Vector2d MR_LineSegm2d_dir ( const MR_LineSegm2d * _this)

returns directional vector of the line Generated from method MR::LineSegm2d::dir. Parameter _this can not be null. It is a single object.

◆ MR_LineSegm2d_Get_a()

MRC_API const MR_Vector2d * MR_LineSegm2d_Get_a ( const MR_LineSegm2d * _this)

Returns a pointer to a member variable of class MR::LineSegm2d named a. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_LineSegm2d_Get_b()

MRC_API const MR_Vector2d * MR_LineSegm2d_Get_b ( const MR_LineSegm2d * _this)

Returns a pointer to a member variable of class MR::LineSegm2d named b. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_LineSegm2d_GetMutable_a()

MRC_API MR_Vector2d * MR_LineSegm2d_GetMutable_a ( MR_LineSegm2d * _this)

Returns a mutable pointer to a member variable of class MR::LineSegm2d named a. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_LineSegm2d_GetMutable_b()

MRC_API MR_Vector2d * MR_LineSegm2d_GetMutable_b ( MR_LineSegm2d * _this)

Returns a mutable pointer to a member variable of class MR::LineSegm2d named b. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_LineSegm2d_length()

MRC_API double MR_LineSegm2d_length ( const MR_LineSegm2d * _this)

returns the length of this line segment Generated from method MR::LineSegm2d::length. Parameter _this can not be null. It is a single object.

◆ MR_LineSegm2d_lengthSq()

MRC_API double MR_LineSegm2d_lengthSq ( const MR_LineSegm2d * _this)

returns squared length of this line segment Generated from method MR::LineSegm2d::lengthSq. Parameter _this can not be null. It is a single object.

◆ MR_LineSegm2d_OffsetMutablePtr()

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 pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.

◆ MR_LineSegm2d_OffsetPtr()

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 pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.

◆ MR_LineSegm2d_Set_a()

MRC_API void MR_LineSegm2d_Set_a ( MR_LineSegm2d * _this,
MR_Vector2d value )

Modifies a member variable of class MR::LineSegm2d named a. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element a. When this function is called, this object will drop object references it had previously in a.

◆ MR_LineSegm2d_Set_b()

MRC_API void MR_LineSegm2d_Set_b ( MR_LineSegm2d * _this,
MR_Vector2d value )

Modifies a member variable of class MR::LineSegm2d named b. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element b. When this function is called, this object will drop object references it had previously in b.

◆ MR_LineSegm2f_AssignFromAnother()

MRC_API MR_LineSegm2f * MR_LineSegm2f_AssignFromAnother ( MR_LineSegm2f * _this,
const MR_LineSegm2f * _other )

Generated from method MR::LineSegm2f::operator=. Parameter _this can not be null. It is a single object. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it had previously.

◆ MR_LineSegm2f_call()

MRC_API MR_Vector2f MR_LineSegm2f_call ( const MR_LineSegm2f * _this,
float param )

returns point on the line, where param=0 returns a and param=1 returns b Generated from method MR::LineSegm2f::operator(). Parameter _this can not be null. It is a single object.

◆ MR_LineSegm2f_Construct()

MRC_API MR_LineSegm2f * MR_LineSegm2f_Construct ( const MR_Vector2f * a,
const MR_Vector2f * b )

Generated from constructor MR::LineSegm2f::LineSegm2f. Parameter a can not be null. It is a single object. The reference to the parameter a might be preserved in the constructed object. Parameter b can not be null. It is a single object. The reference to the parameter b might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_LineSegm2f_Destroy() to free it when you're done using it.

◆ MR_LineSegm2f_ConstructFromAnother()

MRC_API MR_LineSegm2f * MR_LineSegm2f_ConstructFromAnother ( const MR_LineSegm2f * _other)

Generated from constructor MR::LineSegm2f::LineSegm2f. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_LineSegm2f_Destroy() to free it when you're done using it.

◆ MR_LineSegm2f_DefaultConstruct()

MRC_API MR_LineSegm2f * MR_LineSegm2f_DefaultConstruct ( void )

Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_LineSegm2f_Destroy() to free it when you're done using it.

◆ MR_LineSegm2f_DefaultConstructArray()

MRC_API MR_LineSegm2f * MR_LineSegm2f_DefaultConstructArray ( size_t num_elems)

Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_LineSegm2f_DestroyArray(). Use MR_LineSegm2f_OffsetMutablePtr() and MR_LineSegm2f_OffsetPtr() to access the array elements.

◆ MR_LineSegm2f_Destroy()

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.

◆ MR_LineSegm2f_DestroyArray()

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.

◆ MR_LineSegm2f_dir()

MRC_API MR_Vector2f MR_LineSegm2f_dir ( const MR_LineSegm2f * _this)

returns directional vector of the line Generated from method MR::LineSegm2f::dir. Parameter _this can not be null. It is a single object.

◆ MR_LineSegm2f_Get_a()

MRC_API const MR_Vector2f * MR_LineSegm2f_Get_a ( const MR_LineSegm2f * _this)

Returns a pointer to a member variable of class MR::LineSegm2f named a. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_LineSegm2f_Get_b()

MRC_API const MR_Vector2f * MR_LineSegm2f_Get_b ( const MR_LineSegm2f * _this)

Returns a pointer to a member variable of class MR::LineSegm2f named b. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_LineSegm2f_GetMutable_a()

MRC_API MR_Vector2f * MR_LineSegm2f_GetMutable_a ( MR_LineSegm2f * _this)

Returns a mutable pointer to a member variable of class MR::LineSegm2f named a. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_LineSegm2f_GetMutable_b()

MRC_API MR_Vector2f * MR_LineSegm2f_GetMutable_b ( MR_LineSegm2f * _this)

Returns a mutable pointer to a member variable of class MR::LineSegm2f named b. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_LineSegm2f_length()

MRC_API float MR_LineSegm2f_length ( const MR_LineSegm2f * _this)

returns the length of this line segment Generated from method MR::LineSegm2f::length. Parameter _this can not be null. It is a single object.

◆ MR_LineSegm2f_lengthSq()

MRC_API float MR_LineSegm2f_lengthSq ( const MR_LineSegm2f * _this)

returns squared length of this line segment Generated from method MR::LineSegm2f::lengthSq. Parameter _this can not be null. It is a single object.

◆ MR_LineSegm2f_OffsetMutablePtr()

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 pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.

◆ MR_LineSegm2f_OffsetPtr()

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 pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.

◆ MR_LineSegm2f_Set_a()

MRC_API void MR_LineSegm2f_Set_a ( MR_LineSegm2f * _this,
MR_Vector2f value )

Modifies a member variable of class MR::LineSegm2f named a. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element a. When this function is called, this object will drop object references it had previously in a.

◆ MR_LineSegm2f_Set_b()

MRC_API void MR_LineSegm2f_Set_b ( MR_LineSegm2f * _this,
MR_Vector2f value )

Modifies a member variable of class MR::LineSegm2f named b. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element b. When this function is called, this object will drop object references it had previously in b.

◆ MR_LineSegm3d_AssignFromAnother()

MRC_API MR_LineSegm3d * MR_LineSegm3d_AssignFromAnother ( MR_LineSegm3d * _this,
const MR_LineSegm3d * _other )

Generated from method MR::LineSegm3d::operator=. Parameter _this can not be null. It is a single object. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it had previously.

◆ MR_LineSegm3d_call()

MRC_API MR_Vector3d MR_LineSegm3d_call ( const MR_LineSegm3d * _this,
double param )

returns point on the line, where param=0 returns a and param=1 returns b Generated from method MR::LineSegm3d::operator(). Parameter _this can not be null. It is a single object.

◆ MR_LineSegm3d_Construct()

MRC_API MR_LineSegm3d * MR_LineSegm3d_Construct ( const MR_Vector3d * a,
const MR_Vector3d * b )

Generated from constructor MR::LineSegm3d::LineSegm3d. Parameter a can not be null. It is a single object. The reference to the parameter a might be preserved in the constructed object. Parameter b can not be null. It is a single object. The reference to the parameter b might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_LineSegm3d_Destroy() to free it when you're done using it.

◆ MR_LineSegm3d_ConstructFromAnother()

MRC_API MR_LineSegm3d * MR_LineSegm3d_ConstructFromAnother ( const MR_LineSegm3d * _other)

Generated from constructor MR::LineSegm3d::LineSegm3d. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_LineSegm3d_Destroy() to free it when you're done using it.

◆ MR_LineSegm3d_DefaultConstruct()

MRC_API MR_LineSegm3d * MR_LineSegm3d_DefaultConstruct ( void )

Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_LineSegm3d_Destroy() to free it when you're done using it.

◆ MR_LineSegm3d_DefaultConstructArray()

MRC_API MR_LineSegm3d * MR_LineSegm3d_DefaultConstructArray ( size_t num_elems)

Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_LineSegm3d_DestroyArray(). Use MR_LineSegm3d_OffsetMutablePtr() and MR_LineSegm3d_OffsetPtr() to access the array elements.

◆ MR_LineSegm3d_Destroy()

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.

◆ MR_LineSegm3d_DestroyArray()

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.

◆ MR_LineSegm3d_dir()

MRC_API MR_Vector3d MR_LineSegm3d_dir ( const MR_LineSegm3d * _this)

returns directional vector of the line Generated from method MR::LineSegm3d::dir. Parameter _this can not be null. It is a single object.

◆ MR_LineSegm3d_Get_a()

MRC_API const MR_Vector3d * MR_LineSegm3d_Get_a ( const MR_LineSegm3d * _this)

Returns a pointer to a member variable of class MR::LineSegm3d named a. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_LineSegm3d_Get_b()

MRC_API const MR_Vector3d * MR_LineSegm3d_Get_b ( const MR_LineSegm3d * _this)

Returns a pointer to a member variable of class MR::LineSegm3d named b. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_LineSegm3d_GetMutable_a()

MRC_API MR_Vector3d * MR_LineSegm3d_GetMutable_a ( MR_LineSegm3d * _this)

Returns a mutable pointer to a member variable of class MR::LineSegm3d named a. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_LineSegm3d_GetMutable_b()

MRC_API MR_Vector3d * MR_LineSegm3d_GetMutable_b ( MR_LineSegm3d * _this)

Returns a mutable pointer to a member variable of class MR::LineSegm3d named b. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_LineSegm3d_length()

MRC_API double MR_LineSegm3d_length ( const MR_LineSegm3d * _this)

returns the length of this line segment Generated from method MR::LineSegm3d::length. Parameter _this can not be null. It is a single object.

◆ MR_LineSegm3d_lengthSq()

MRC_API double MR_LineSegm3d_lengthSq ( const MR_LineSegm3d * _this)

returns squared length of this line segment Generated from method MR::LineSegm3d::lengthSq. Parameter _this can not be null. It is a single object.

◆ MR_LineSegm3d_OffsetMutablePtr()

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 pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.

◆ MR_LineSegm3d_OffsetPtr()

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 pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.

◆ MR_LineSegm3d_Set_a()

MRC_API void MR_LineSegm3d_Set_a ( MR_LineSegm3d * _this,
MR_Vector3d value )

Modifies a member variable of class MR::LineSegm3d named a. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element a. When this function is called, this object will drop object references it had previously in a.

◆ MR_LineSegm3d_Set_b()

MRC_API void MR_LineSegm3d_Set_b ( MR_LineSegm3d * _this,
MR_Vector3d value )

Modifies a member variable of class MR::LineSegm3d named b. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element b. When this function is called, this object will drop object references it had previously in b.

◆ MR_LineSegm3f_AssignFromAnother()

MRC_API MR_LineSegm3f * MR_LineSegm3f_AssignFromAnother ( MR_LineSegm3f * _this,
const MR_LineSegm3f * _other )

Generated from method MR::LineSegm3f::operator=. Parameter _this can not be null. It is a single object. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it had previously.

◆ MR_LineSegm3f_call()

MRC_API MR_Vector3f MR_LineSegm3f_call ( const MR_LineSegm3f * _this,
float param )

returns point on the line, where param=0 returns a and param=1 returns b Generated from method MR::LineSegm3f::operator(). Parameter _this can not be null. It is a single object.

◆ MR_LineSegm3f_Construct()

MRC_API MR_LineSegm3f * MR_LineSegm3f_Construct ( const MR_Vector3f * a,
const MR_Vector3f * b )

Generated from constructor MR::LineSegm3f::LineSegm3f. Parameter a can not be null. It is a single object. The reference to the parameter a might be preserved in the constructed object. Parameter b can not be null. It is a single object. The reference to the parameter b might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_LineSegm3f_Destroy() to free it when you're done using it.

◆ MR_LineSegm3f_ConstructFromAnother()

MRC_API MR_LineSegm3f * MR_LineSegm3f_ConstructFromAnother ( const MR_LineSegm3f * _other)

Generated from constructor MR::LineSegm3f::LineSegm3f. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_LineSegm3f_Destroy() to free it when you're done using it.

◆ MR_LineSegm3f_DefaultConstruct()

MRC_API MR_LineSegm3f * MR_LineSegm3f_DefaultConstruct ( void )

Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_LineSegm3f_Destroy() to free it when you're done using it.

◆ MR_LineSegm3f_DefaultConstructArray()

MRC_API MR_LineSegm3f * MR_LineSegm3f_DefaultConstructArray ( size_t num_elems)

Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_LineSegm3f_DestroyArray(). Use MR_LineSegm3f_OffsetMutablePtr() and MR_LineSegm3f_OffsetPtr() to access the array elements.

◆ MR_LineSegm3f_Destroy()

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.

◆ MR_LineSegm3f_DestroyArray()

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.

◆ MR_LineSegm3f_dir()

MRC_API MR_Vector3f MR_LineSegm3f_dir ( const MR_LineSegm3f * _this)

returns directional vector of the line Generated from method MR::LineSegm3f::dir. Parameter _this can not be null. It is a single object.

◆ MR_LineSegm3f_Get_a()

MRC_API const MR_Vector3f * MR_LineSegm3f_Get_a ( const MR_LineSegm3f * _this)

Returns a pointer to a member variable of class MR::LineSegm3f named a. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_LineSegm3f_Get_b()

MRC_API const MR_Vector3f * MR_LineSegm3f_Get_b ( const MR_LineSegm3f * _this)

Returns a pointer to a member variable of class MR::LineSegm3f named b. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_LineSegm3f_GetMutable_a()

MRC_API MR_Vector3f * MR_LineSegm3f_GetMutable_a ( MR_LineSegm3f * _this)

Returns a mutable pointer to a member variable of class MR::LineSegm3f named a. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_LineSegm3f_GetMutable_b()

MRC_API MR_Vector3f * MR_LineSegm3f_GetMutable_b ( MR_LineSegm3f * _this)

Returns a mutable pointer to a member variable of class MR::LineSegm3f named b. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_LineSegm3f_length()

MRC_API float MR_LineSegm3f_length ( const MR_LineSegm3f * _this)

returns the length of this line segment Generated from method MR::LineSegm3f::length. Parameter _this can not be null. It is a single object.

◆ MR_LineSegm3f_lengthSq()

MRC_API float MR_LineSegm3f_lengthSq ( const MR_LineSegm3f * _this)

returns squared length of this line segment Generated from method MR::LineSegm3f::lengthSq. Parameter _this can not be null. It is a single object.

◆ MR_LineSegm3f_OffsetMutablePtr()

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 pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.

◆ MR_LineSegm3f_OffsetPtr()

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 pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.

◆ MR_LineSegm3f_Set_a()

MRC_API void MR_LineSegm3f_Set_a ( MR_LineSegm3f * _this,
MR_Vector3f value )

Modifies a member variable of class MR::LineSegm3f named a. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element a. When this function is called, this object will drop object references it had previously in a.

◆ MR_LineSegm3f_Set_b()

MRC_API void MR_LineSegm3f_Set_b ( MR_LineSegm3f * _this,
MR_Vector3f value )

Modifies a member variable of class MR::LineSegm3f named b. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element b. When this function is called, this object will drop object references it had previously in b.