MeshLib C Docs
Loading...
Searching...
No Matches
MRQuadraticForm.h File Reference
#include <MRCMisc/exports.h>
#include <stddef.h>

Go to the source code of this file.

Typedefs

typedef struct MR_SymMatrix2d MR_SymMatrix2d
 
typedef struct MR_SymMatrix2f MR_SymMatrix2f
 
typedef struct MR_SymMatrix3d MR_SymMatrix3d
 
typedef struct MR_SymMatrix3f MR_SymMatrix3f
 
typedef struct MR_Vector2d MR_Vector2d
 
typedef struct MR_Vector2f MR_Vector2f
 
typedef struct MR_Vector3d MR_Vector3d
 
typedef struct MR_Vector3f MR_Vector3f
 
typedef struct MR_QuadraticForm2f MR_QuadraticForm2f
 
typedef struct MR_QuadraticForm2d MR_QuadraticForm2d
 
typedef struct MR_QuadraticForm3f MR_QuadraticForm3f
 
typedef struct MR_QuadraticForm3d MR_QuadraticForm3d
 

Functions

MRC_API const MR_SymMatrix2fMR_QuadraticForm2f_Get_A (const MR_QuadraticForm2f *_this)
 
MRC_API void MR_QuadraticForm2f_Set_A (MR_QuadraticForm2f *_this, const MR_SymMatrix2f *value)
 
MRC_API MR_SymMatrix2fMR_QuadraticForm2f_GetMutable_A (MR_QuadraticForm2f *_this)
 
MRC_API const float * MR_QuadraticForm2f_Get_c (const MR_QuadraticForm2f *_this)
 
MRC_API void MR_QuadraticForm2f_Set_c (MR_QuadraticForm2f *_this, float value)
 
MRC_API float * MR_QuadraticForm2f_GetMutable_c (MR_QuadraticForm2f *_this)
 
MRC_API MR_QuadraticForm2fMR_QuadraticForm2f_DefaultConstruct (void)
 
MRC_API MR_QuadraticForm2fMR_QuadraticForm2f_DefaultConstructArray (size_t num_elems)
 
MRC_API MR_QuadraticForm2fMR_QuadraticForm2f_ConstructFrom (const MR_SymMatrix2f *A, float c)
 
MRC_API const MR_QuadraticForm2fMR_QuadraticForm2f_OffsetPtr (const MR_QuadraticForm2f *ptr, ptrdiff_t i)
 
MRC_API MR_QuadraticForm2fMR_QuadraticForm2f_OffsetMutablePtr (MR_QuadraticForm2f *ptr, ptrdiff_t i)
 
MRC_API MR_QuadraticForm2fMR_QuadraticForm2f_ConstructFromAnother (const MR_QuadraticForm2f *_other)
 
MRC_API void MR_QuadraticForm2f_Destroy (const MR_QuadraticForm2f *_this)
 Destroys a heap-allocated instance of MR_QuadraticForm2f. Does nothing if the pointer is null.
 
MRC_API void MR_QuadraticForm2f_DestroyArray (const MR_QuadraticForm2f *_this)
 Destroys a heap-allocated array of MR_QuadraticForm2f. Does nothing if the pointer is null.
 
MRC_API MR_QuadraticForm2fMR_QuadraticForm2f_AssignFromAnother (MR_QuadraticForm2f *_this, const MR_QuadraticForm2f *_other)
 
MRC_API float MR_QuadraticForm2f_eval (const MR_QuadraticForm2f *_this, const MR_Vector2f *x)
 
MRC_API void MR_QuadraticForm2f_addDistToOrigin (MR_QuadraticForm2f *_this, float weight)
 
MRC_API void MR_QuadraticForm2f_addDistToPlane_1 (MR_QuadraticForm2f *_this, const MR_Vector2f *planeUnitNormal)
 
MRC_API void MR_QuadraticForm2f_addDistToPlane_2 (MR_QuadraticForm2f *_this, const MR_Vector2f *planeUnitNormal, float weight)
 
MRC_API void MR_QuadraticForm2f_addDistToLine_1 (MR_QuadraticForm2f *_this, const MR_Vector2f *lineUnitDir)
 
MRC_API void MR_QuadraticForm2f_addDistToLine_2 (MR_QuadraticForm2f *_this, const MR_Vector2f *lineUnitDir, float weight)
 
MRC_API const MR_SymMatrix2dMR_QuadraticForm2d_Get_A (const MR_QuadraticForm2d *_this)
 
MRC_API void MR_QuadraticForm2d_Set_A (MR_QuadraticForm2d *_this, const MR_SymMatrix2d *value)
 
MRC_API MR_SymMatrix2dMR_QuadraticForm2d_GetMutable_A (MR_QuadraticForm2d *_this)
 
MRC_API const double * MR_QuadraticForm2d_Get_c (const MR_QuadraticForm2d *_this)
 
MRC_API void MR_QuadraticForm2d_Set_c (MR_QuadraticForm2d *_this, double value)
 
MRC_API double * MR_QuadraticForm2d_GetMutable_c (MR_QuadraticForm2d *_this)
 
MRC_API MR_QuadraticForm2dMR_QuadraticForm2d_DefaultConstruct (void)
 
MRC_API MR_QuadraticForm2dMR_QuadraticForm2d_DefaultConstructArray (size_t num_elems)
 
MRC_API MR_QuadraticForm2dMR_QuadraticForm2d_ConstructFrom (const MR_SymMatrix2d *A, double c)
 
MRC_API const MR_QuadraticForm2dMR_QuadraticForm2d_OffsetPtr (const MR_QuadraticForm2d *ptr, ptrdiff_t i)
 
MRC_API MR_QuadraticForm2dMR_QuadraticForm2d_OffsetMutablePtr (MR_QuadraticForm2d *ptr, ptrdiff_t i)
 
MRC_API MR_QuadraticForm2dMR_QuadraticForm2d_ConstructFromAnother (const MR_QuadraticForm2d *_other)
 
MRC_API void MR_QuadraticForm2d_Destroy (const MR_QuadraticForm2d *_this)
 Destroys a heap-allocated instance of MR_QuadraticForm2d. Does nothing if the pointer is null.
 
MRC_API void MR_QuadraticForm2d_DestroyArray (const MR_QuadraticForm2d *_this)
 Destroys a heap-allocated array of MR_QuadraticForm2d. Does nothing if the pointer is null.
 
MRC_API MR_QuadraticForm2dMR_QuadraticForm2d_AssignFromAnother (MR_QuadraticForm2d *_this, const MR_QuadraticForm2d *_other)
 
MRC_API double MR_QuadraticForm2d_eval (const MR_QuadraticForm2d *_this, const MR_Vector2d *x)
 
MRC_API void MR_QuadraticForm2d_addDistToOrigin (MR_QuadraticForm2d *_this, double weight)
 
MRC_API void MR_QuadraticForm2d_addDistToPlane_1 (MR_QuadraticForm2d *_this, const MR_Vector2d *planeUnitNormal)
 
MRC_API void MR_QuadraticForm2d_addDistToPlane_2 (MR_QuadraticForm2d *_this, const MR_Vector2d *planeUnitNormal, double weight)
 
MRC_API void MR_QuadraticForm2d_addDistToLine_1 (MR_QuadraticForm2d *_this, const MR_Vector2d *lineUnitDir)
 
MRC_API void MR_QuadraticForm2d_addDistToLine_2 (MR_QuadraticForm2d *_this, const MR_Vector2d *lineUnitDir, double weight)
 
MRC_API const MR_SymMatrix3fMR_QuadraticForm3f_Get_A (const MR_QuadraticForm3f *_this)
 
MRC_API void MR_QuadraticForm3f_Set_A (MR_QuadraticForm3f *_this, const MR_SymMatrix3f *value)
 
MRC_API MR_SymMatrix3fMR_QuadraticForm3f_GetMutable_A (MR_QuadraticForm3f *_this)
 
MRC_API const float * MR_QuadraticForm3f_Get_c (const MR_QuadraticForm3f *_this)
 
MRC_API void MR_QuadraticForm3f_Set_c (MR_QuadraticForm3f *_this, float value)
 
MRC_API float * MR_QuadraticForm3f_GetMutable_c (MR_QuadraticForm3f *_this)
 
MRC_API MR_QuadraticForm3fMR_QuadraticForm3f_DefaultConstruct (void)
 
MRC_API MR_QuadraticForm3fMR_QuadraticForm3f_DefaultConstructArray (size_t num_elems)
 
MRC_API MR_QuadraticForm3fMR_QuadraticForm3f_ConstructFrom (const MR_SymMatrix3f *A, float c)
 
MRC_API const MR_QuadraticForm3fMR_QuadraticForm3f_OffsetPtr (const MR_QuadraticForm3f *ptr, ptrdiff_t i)
 
MRC_API MR_QuadraticForm3fMR_QuadraticForm3f_OffsetMutablePtr (MR_QuadraticForm3f *ptr, ptrdiff_t i)
 
MRC_API MR_QuadraticForm3fMR_QuadraticForm3f_ConstructFromAnother (const MR_QuadraticForm3f *_other)
 
MRC_API void MR_QuadraticForm3f_Destroy (const MR_QuadraticForm3f *_this)
 Destroys a heap-allocated instance of MR_QuadraticForm3f. Does nothing if the pointer is null.
 
MRC_API void MR_QuadraticForm3f_DestroyArray (const MR_QuadraticForm3f *_this)
 Destroys a heap-allocated array of MR_QuadraticForm3f. Does nothing if the pointer is null.
 
MRC_API MR_QuadraticForm3fMR_QuadraticForm3f_AssignFromAnother (MR_QuadraticForm3f *_this, const MR_QuadraticForm3f *_other)
 
MRC_API float MR_QuadraticForm3f_eval (const MR_QuadraticForm3f *_this, const MR_Vector3f *x)
 
MRC_API void MR_QuadraticForm3f_addDistToOrigin (MR_QuadraticForm3f *_this, float weight)
 
MRC_API void MR_QuadraticForm3f_addDistToPlane_1 (MR_QuadraticForm3f *_this, const MR_Vector3f *planeUnitNormal)
 
MRC_API void MR_QuadraticForm3f_addDistToPlane_2 (MR_QuadraticForm3f *_this, const MR_Vector3f *planeUnitNormal, float weight)
 
MRC_API void MR_QuadraticForm3f_addDistToLine_1 (MR_QuadraticForm3f *_this, const MR_Vector3f *lineUnitDir)
 
MRC_API void MR_QuadraticForm3f_addDistToLine_2 (MR_QuadraticForm3f *_this, const MR_Vector3f *lineUnitDir, float weight)
 
MRC_API const MR_SymMatrix3dMR_QuadraticForm3d_Get_A (const MR_QuadraticForm3d *_this)
 
MRC_API void MR_QuadraticForm3d_Set_A (MR_QuadraticForm3d *_this, const MR_SymMatrix3d *value)
 
MRC_API MR_SymMatrix3dMR_QuadraticForm3d_GetMutable_A (MR_QuadraticForm3d *_this)
 
MRC_API const double * MR_QuadraticForm3d_Get_c (const MR_QuadraticForm3d *_this)
 
MRC_API void MR_QuadraticForm3d_Set_c (MR_QuadraticForm3d *_this, double value)
 
MRC_API double * MR_QuadraticForm3d_GetMutable_c (MR_QuadraticForm3d *_this)
 
MRC_API MR_QuadraticForm3dMR_QuadraticForm3d_DefaultConstruct (void)
 
MRC_API MR_QuadraticForm3dMR_QuadraticForm3d_DefaultConstructArray (size_t num_elems)
 
MRC_API MR_QuadraticForm3dMR_QuadraticForm3d_ConstructFrom (const MR_SymMatrix3d *A, double c)
 
MRC_API const MR_QuadraticForm3dMR_QuadraticForm3d_OffsetPtr (const MR_QuadraticForm3d *ptr, ptrdiff_t i)
 
MRC_API MR_QuadraticForm3dMR_QuadraticForm3d_OffsetMutablePtr (MR_QuadraticForm3d *ptr, ptrdiff_t i)
 
MRC_API MR_QuadraticForm3dMR_QuadraticForm3d_ConstructFromAnother (const MR_QuadraticForm3d *_other)
 
MRC_API void MR_QuadraticForm3d_Destroy (const MR_QuadraticForm3d *_this)
 Destroys a heap-allocated instance of MR_QuadraticForm3d. Does nothing if the pointer is null.
 
MRC_API void MR_QuadraticForm3d_DestroyArray (const MR_QuadraticForm3d *_this)
 Destroys a heap-allocated array of MR_QuadraticForm3d. Does nothing if the pointer is null.
 
MRC_API MR_QuadraticForm3dMR_QuadraticForm3d_AssignFromAnother (MR_QuadraticForm3d *_this, const MR_QuadraticForm3d *_other)
 
MRC_API double MR_QuadraticForm3d_eval (const MR_QuadraticForm3d *_this, const MR_Vector3d *x)
 
MRC_API void MR_QuadraticForm3d_addDistToOrigin (MR_QuadraticForm3d *_this, double weight)
 
MRC_API void MR_QuadraticForm3d_addDistToPlane_1 (MR_QuadraticForm3d *_this, const MR_Vector3d *planeUnitNormal)
 
MRC_API void MR_QuadraticForm3d_addDistToPlane_2 (MR_QuadraticForm3d *_this, const MR_Vector3d *planeUnitNormal, double weight)
 
MRC_API void MR_QuadraticForm3d_addDistToLine_1 (MR_QuadraticForm3d *_this, const MR_Vector3d *lineUnitDir)
 
MRC_API void MR_QuadraticForm3d_addDistToLine_2 (MR_QuadraticForm3d *_this, const MR_Vector3d *lineUnitDir, double weight)
 

Typedef Documentation

◆ MR_QuadraticForm2d

quadratic form: f = x^T A x + c Generated from class MR::QuadraticForm2d. 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_QuadraticForm2f

quadratic form: f = x^T A x + c Generated from class MR::QuadraticForm2f. 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_QuadraticForm3d

quadratic form: f = x^T A x + c Generated from class MR::QuadraticForm3d. 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_QuadraticForm3f

quadratic form: f = x^T A x + c Generated from class MR::QuadraticForm3f. 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_SymMatrix2d

◆ MR_SymMatrix2f

◆ MR_SymMatrix3d

◆ MR_SymMatrix3f

◆ MR_Vector2d

typedef struct MR_Vector2d MR_Vector2d

◆ MR_Vector2f

typedef struct MR_Vector2f MR_Vector2f

◆ MR_Vector3d

typedef struct MR_Vector3d MR_Vector3d

◆ MR_Vector3f

typedef struct MR_Vector3f MR_Vector3f

Function Documentation

◆ MR_QuadraticForm2d_addDistToLine_1()

MRC_API void MR_QuadraticForm2d_addDistToLine_1 ( MR_QuadraticForm2d * _this,
const MR_Vector2d * lineUnitDir )

adds to this squared distance to line passing via origin with given unit direction Generated from method MR::QuadraticForm2d::addDistToLine. Parameter _this can not be null. It is a single object. Parameter lineUnitDir can not be null. It is a single object.

◆ MR_QuadraticForm2d_addDistToLine_2()

MRC_API void MR_QuadraticForm2d_addDistToLine_2 ( MR_QuadraticForm2d * _this,
const MR_Vector2d * lineUnitDir,
double weight )

Generated from method MR::QuadraticForm2d::addDistToLine. Parameter _this can not be null. It is a single object. Parameter lineUnitDir can not be null. It is a single object.

◆ MR_QuadraticForm2d_addDistToOrigin()

MRC_API void MR_QuadraticForm2d_addDistToOrigin ( MR_QuadraticForm2d * _this,
double weight )

adds to this squared distance to the origin point Generated from method MR::QuadraticForm2d::addDistToOrigin. Parameter _this can not be null. It is a single object.

◆ MR_QuadraticForm2d_addDistToPlane_1()

MRC_API void MR_QuadraticForm2d_addDistToPlane_1 ( MR_QuadraticForm2d * _this,
const MR_Vector2d * planeUnitNormal )

adds to this squared distance to plane passing via origin with given unit normal Generated from method MR::QuadraticForm2d::addDistToPlane. Parameter _this can not be null. It is a single object. Parameter planeUnitNormal can not be null. It is a single object.

◆ MR_QuadraticForm2d_addDistToPlane_2()

MRC_API void MR_QuadraticForm2d_addDistToPlane_2 ( MR_QuadraticForm2d * _this,
const MR_Vector2d * planeUnitNormal,
double weight )

Generated from method MR::QuadraticForm2d::addDistToPlane. Parameter _this can not be null. It is a single object. Parameter planeUnitNormal can not be null. It is a single object.

◆ MR_QuadraticForm2d_AssignFromAnother()

MRC_API MR_QuadraticForm2d * MR_QuadraticForm2d_AssignFromAnother ( MR_QuadraticForm2d * _this,
const MR_QuadraticForm2d * _other )

Generated from method MR::QuadraticForm2d::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_QuadraticForm2d_ConstructFrom()

MRC_API MR_QuadraticForm2d * MR_QuadraticForm2d_ConstructFrom ( const MR_SymMatrix2d * A,
double c )

Constructs MR::QuadraticForm2d elementwise. Parameter A can not be null. It is a single object. The reference to the parameter A might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_QuadraticForm2d_Destroy() to free it when you're done using it. When this function is called, this object will drop any object references it had previously.

◆ MR_QuadraticForm2d_ConstructFromAnother()

MRC_API MR_QuadraticForm2d * MR_QuadraticForm2d_ConstructFromAnother ( const MR_QuadraticForm2d * _other)

Generated from constructor MR::QuadraticForm2d::QuadraticForm2d. 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_QuadraticForm2d_Destroy() to free it when you're done using it.

◆ MR_QuadraticForm2d_DefaultConstruct()

MRC_API MR_QuadraticForm2d * MR_QuadraticForm2d_DefaultConstruct ( void )

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

◆ MR_QuadraticForm2d_DefaultConstructArray()

MRC_API MR_QuadraticForm2d * MR_QuadraticForm2d_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_QuadraticForm2d_DestroyArray(). Use MR_QuadraticForm2d_OffsetMutablePtr() and MR_QuadraticForm2d_OffsetPtr() to access the array elements.

◆ MR_QuadraticForm2d_Destroy()

MRC_API void MR_QuadraticForm2d_Destroy ( const MR_QuadraticForm2d * _this)

Destroys a heap-allocated instance of MR_QuadraticForm2d. Does nothing if the pointer is null.

◆ MR_QuadraticForm2d_DestroyArray()

MRC_API void MR_QuadraticForm2d_DestroyArray ( const MR_QuadraticForm2d * _this)

Destroys a heap-allocated array of MR_QuadraticForm2d. Does nothing if the pointer is null.

◆ MR_QuadraticForm2d_eval()

MRC_API double MR_QuadraticForm2d_eval ( const MR_QuadraticForm2d * _this,
const MR_Vector2d * x )

evaluates the function at given x Generated from method MR::QuadraticForm2d::eval. Parameter _this can not be null. It is a single object. Parameter x can not be null. It is a single object.

◆ MR_QuadraticForm2d_Get_A()

MRC_API const MR_SymMatrix2d * MR_QuadraticForm2d_Get_A ( const MR_QuadraticForm2d * _this)

Returns a pointer to a member variable of class MR::QuadraticForm2d 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_QuadraticForm2d_Get_c()

MRC_API const double * MR_QuadraticForm2d_Get_c ( const MR_QuadraticForm2d * _this)

Returns a pointer to a member variable of class MR::QuadraticForm2d named c. 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_QuadraticForm2d_GetMutable_A()

MRC_API MR_SymMatrix2d * MR_QuadraticForm2d_GetMutable_A ( MR_QuadraticForm2d * _this)

Returns a mutable pointer to a member variable of class MR::QuadraticForm2d 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_QuadraticForm2d_GetMutable_c()

MRC_API double * MR_QuadraticForm2d_GetMutable_c ( MR_QuadraticForm2d * _this)

Returns a mutable pointer to a member variable of class MR::QuadraticForm2d named c. 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_QuadraticForm2d_OffsetMutablePtr()

MRC_API MR_QuadraticForm2d * MR_QuadraticForm2d_OffsetMutablePtr ( MR_QuadraticForm2d * 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_QuadraticForm2d_OffsetPtr()

MRC_API const MR_QuadraticForm2d * MR_QuadraticForm2d_OffsetPtr ( const MR_QuadraticForm2d * 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_QuadraticForm2d_Set_A()

MRC_API void MR_QuadraticForm2d_Set_A ( MR_QuadraticForm2d * _this,
const MR_SymMatrix2d * value )

Modifies a member variable of class MR::QuadraticForm2d named A. Parameter _this can not be null. It is a single object. Parameter value 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_QuadraticForm2d_Set_c()

MRC_API void MR_QuadraticForm2d_Set_c ( MR_QuadraticForm2d * _this,
double value )

Modifies a member variable of class MR::QuadraticForm2d named c. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it had previously in c.

◆ MR_QuadraticForm2f_addDistToLine_1()

MRC_API void MR_QuadraticForm2f_addDistToLine_1 ( MR_QuadraticForm2f * _this,
const MR_Vector2f * lineUnitDir )

adds to this squared distance to line passing via origin with given unit direction Generated from method MR::QuadraticForm2f::addDistToLine. Parameter _this can not be null. It is a single object. Parameter lineUnitDir can not be null. It is a single object.

◆ MR_QuadraticForm2f_addDistToLine_2()

MRC_API void MR_QuadraticForm2f_addDistToLine_2 ( MR_QuadraticForm2f * _this,
const MR_Vector2f * lineUnitDir,
float weight )

Generated from method MR::QuadraticForm2f::addDistToLine. Parameter _this can not be null. It is a single object. Parameter lineUnitDir can not be null. It is a single object.

◆ MR_QuadraticForm2f_addDistToOrigin()

MRC_API void MR_QuadraticForm2f_addDistToOrigin ( MR_QuadraticForm2f * _this,
float weight )

adds to this squared distance to the origin point Generated from method MR::QuadraticForm2f::addDistToOrigin. Parameter _this can not be null. It is a single object.

◆ MR_QuadraticForm2f_addDistToPlane_1()

MRC_API void MR_QuadraticForm2f_addDistToPlane_1 ( MR_QuadraticForm2f * _this,
const MR_Vector2f * planeUnitNormal )

adds to this squared distance to plane passing via origin with given unit normal Generated from method MR::QuadraticForm2f::addDistToPlane. Parameter _this can not be null. It is a single object. Parameter planeUnitNormal can not be null. It is a single object.

◆ MR_QuadraticForm2f_addDistToPlane_2()

MRC_API void MR_QuadraticForm2f_addDistToPlane_2 ( MR_QuadraticForm2f * _this,
const MR_Vector2f * planeUnitNormal,
float weight )

Generated from method MR::QuadraticForm2f::addDistToPlane. Parameter _this can not be null. It is a single object. Parameter planeUnitNormal can not be null. It is a single object.

◆ MR_QuadraticForm2f_AssignFromAnother()

MRC_API MR_QuadraticForm2f * MR_QuadraticForm2f_AssignFromAnother ( MR_QuadraticForm2f * _this,
const MR_QuadraticForm2f * _other )

Generated from method MR::QuadraticForm2f::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_QuadraticForm2f_ConstructFrom()

MRC_API MR_QuadraticForm2f * MR_QuadraticForm2f_ConstructFrom ( const MR_SymMatrix2f * A,
float c )

Constructs MR::QuadraticForm2f elementwise. Parameter A can not be null. It is a single object. The reference to the parameter A might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_QuadraticForm2f_Destroy() to free it when you're done using it. When this function is called, this object will drop any object references it had previously.

◆ MR_QuadraticForm2f_ConstructFromAnother()

MRC_API MR_QuadraticForm2f * MR_QuadraticForm2f_ConstructFromAnother ( const MR_QuadraticForm2f * _other)

Generated from constructor MR::QuadraticForm2f::QuadraticForm2f. 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_QuadraticForm2f_Destroy() to free it when you're done using it.

◆ MR_QuadraticForm2f_DefaultConstruct()

MRC_API MR_QuadraticForm2f * MR_QuadraticForm2f_DefaultConstruct ( void )

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

◆ MR_QuadraticForm2f_DefaultConstructArray()

MRC_API MR_QuadraticForm2f * MR_QuadraticForm2f_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_QuadraticForm2f_DestroyArray(). Use MR_QuadraticForm2f_OffsetMutablePtr() and MR_QuadraticForm2f_OffsetPtr() to access the array elements.

◆ MR_QuadraticForm2f_Destroy()

MRC_API void MR_QuadraticForm2f_Destroy ( const MR_QuadraticForm2f * _this)

Destroys a heap-allocated instance of MR_QuadraticForm2f. Does nothing if the pointer is null.

◆ MR_QuadraticForm2f_DestroyArray()

MRC_API void MR_QuadraticForm2f_DestroyArray ( const MR_QuadraticForm2f * _this)

Destroys a heap-allocated array of MR_QuadraticForm2f. Does nothing if the pointer is null.

◆ MR_QuadraticForm2f_eval()

MRC_API float MR_QuadraticForm2f_eval ( const MR_QuadraticForm2f * _this,
const MR_Vector2f * x )

evaluates the function at given x Generated from method MR::QuadraticForm2f::eval. Parameter _this can not be null. It is a single object. Parameter x can not be null. It is a single object.

◆ MR_QuadraticForm2f_Get_A()

MRC_API const MR_SymMatrix2f * MR_QuadraticForm2f_Get_A ( const MR_QuadraticForm2f * _this)

Returns a pointer to a member variable of class MR::QuadraticForm2f 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_QuadraticForm2f_Get_c()

MRC_API const float * MR_QuadraticForm2f_Get_c ( const MR_QuadraticForm2f * _this)

Returns a pointer to a member variable of class MR::QuadraticForm2f named c. 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_QuadraticForm2f_GetMutable_A()

MRC_API MR_SymMatrix2f * MR_QuadraticForm2f_GetMutable_A ( MR_QuadraticForm2f * _this)

Returns a mutable pointer to a member variable of class MR::QuadraticForm2f 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_QuadraticForm2f_GetMutable_c()

MRC_API float * MR_QuadraticForm2f_GetMutable_c ( MR_QuadraticForm2f * _this)

Returns a mutable pointer to a member variable of class MR::QuadraticForm2f named c. 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_QuadraticForm2f_OffsetMutablePtr()

MRC_API MR_QuadraticForm2f * MR_QuadraticForm2f_OffsetMutablePtr ( MR_QuadraticForm2f * 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_QuadraticForm2f_OffsetPtr()

MRC_API const MR_QuadraticForm2f * MR_QuadraticForm2f_OffsetPtr ( const MR_QuadraticForm2f * 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_QuadraticForm2f_Set_A()

MRC_API void MR_QuadraticForm2f_Set_A ( MR_QuadraticForm2f * _this,
const MR_SymMatrix2f * value )

Modifies a member variable of class MR::QuadraticForm2f named A. Parameter _this can not be null. It is a single object. Parameter value 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_QuadraticForm2f_Set_c()

MRC_API void MR_QuadraticForm2f_Set_c ( MR_QuadraticForm2f * _this,
float value )

Modifies a member variable of class MR::QuadraticForm2f named c. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it had previously in c.

◆ MR_QuadraticForm3d_addDistToLine_1()

MRC_API void MR_QuadraticForm3d_addDistToLine_1 ( MR_QuadraticForm3d * _this,
const MR_Vector3d * lineUnitDir )

adds to this squared distance to line passing via origin with given unit direction Generated from method MR::QuadraticForm3d::addDistToLine. Parameter _this can not be null. It is a single object. Parameter lineUnitDir can not be null. It is a single object.

◆ MR_QuadraticForm3d_addDistToLine_2()

MRC_API void MR_QuadraticForm3d_addDistToLine_2 ( MR_QuadraticForm3d * _this,
const MR_Vector3d * lineUnitDir,
double weight )

Generated from method MR::QuadraticForm3d::addDistToLine. Parameter _this can not be null. It is a single object. Parameter lineUnitDir can not be null. It is a single object.

◆ MR_QuadraticForm3d_addDistToOrigin()

MRC_API void MR_QuadraticForm3d_addDistToOrigin ( MR_QuadraticForm3d * _this,
double weight )

adds to this squared distance to the origin point Generated from method MR::QuadraticForm3d::addDistToOrigin. Parameter _this can not be null. It is a single object.

◆ MR_QuadraticForm3d_addDistToPlane_1()

MRC_API void MR_QuadraticForm3d_addDistToPlane_1 ( MR_QuadraticForm3d * _this,
const MR_Vector3d * planeUnitNormal )

adds to this squared distance to plane passing via origin with given unit normal Generated from method MR::QuadraticForm3d::addDistToPlane. Parameter _this can not be null. It is a single object. Parameter planeUnitNormal can not be null. It is a single object.

◆ MR_QuadraticForm3d_addDistToPlane_2()

MRC_API void MR_QuadraticForm3d_addDistToPlane_2 ( MR_QuadraticForm3d * _this,
const MR_Vector3d * planeUnitNormal,
double weight )

Generated from method MR::QuadraticForm3d::addDistToPlane. Parameter _this can not be null. It is a single object. Parameter planeUnitNormal can not be null. It is a single object.

◆ MR_QuadraticForm3d_AssignFromAnother()

MRC_API MR_QuadraticForm3d * MR_QuadraticForm3d_AssignFromAnother ( MR_QuadraticForm3d * _this,
const MR_QuadraticForm3d * _other )

Generated from method MR::QuadraticForm3d::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_QuadraticForm3d_ConstructFrom()

MRC_API MR_QuadraticForm3d * MR_QuadraticForm3d_ConstructFrom ( const MR_SymMatrix3d * A,
double c )

Constructs MR::QuadraticForm3d elementwise. Parameter A can not be null. It is a single object. The reference to the parameter A might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_QuadraticForm3d_Destroy() to free it when you're done using it. When this function is called, this object will drop any object references it had previously.

◆ MR_QuadraticForm3d_ConstructFromAnother()

MRC_API MR_QuadraticForm3d * MR_QuadraticForm3d_ConstructFromAnother ( const MR_QuadraticForm3d * _other)

Generated from constructor MR::QuadraticForm3d::QuadraticForm3d. 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_QuadraticForm3d_Destroy() to free it when you're done using it.

◆ MR_QuadraticForm3d_DefaultConstruct()

MRC_API MR_QuadraticForm3d * MR_QuadraticForm3d_DefaultConstruct ( void )

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

◆ MR_QuadraticForm3d_DefaultConstructArray()

MRC_API MR_QuadraticForm3d * MR_QuadraticForm3d_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_QuadraticForm3d_DestroyArray(). Use MR_QuadraticForm3d_OffsetMutablePtr() and MR_QuadraticForm3d_OffsetPtr() to access the array elements.

◆ MR_QuadraticForm3d_Destroy()

MRC_API void MR_QuadraticForm3d_Destroy ( const MR_QuadraticForm3d * _this)

Destroys a heap-allocated instance of MR_QuadraticForm3d. Does nothing if the pointer is null.

◆ MR_QuadraticForm3d_DestroyArray()

MRC_API void MR_QuadraticForm3d_DestroyArray ( const MR_QuadraticForm3d * _this)

Destroys a heap-allocated array of MR_QuadraticForm3d. Does nothing if the pointer is null.

◆ MR_QuadraticForm3d_eval()

MRC_API double MR_QuadraticForm3d_eval ( const MR_QuadraticForm3d * _this,
const MR_Vector3d * x )

evaluates the function at given x Generated from method MR::QuadraticForm3d::eval. Parameter _this can not be null. It is a single object. Parameter x can not be null. It is a single object.

◆ MR_QuadraticForm3d_Get_A()

MRC_API const MR_SymMatrix3d * MR_QuadraticForm3d_Get_A ( const MR_QuadraticForm3d * _this)

Returns a pointer to a member variable of class MR::QuadraticForm3d 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_QuadraticForm3d_Get_c()

MRC_API const double * MR_QuadraticForm3d_Get_c ( const MR_QuadraticForm3d * _this)

Returns a pointer to a member variable of class MR::QuadraticForm3d named c. 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_QuadraticForm3d_GetMutable_A()

MRC_API MR_SymMatrix3d * MR_QuadraticForm3d_GetMutable_A ( MR_QuadraticForm3d * _this)

Returns a mutable pointer to a member variable of class MR::QuadraticForm3d 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_QuadraticForm3d_GetMutable_c()

MRC_API double * MR_QuadraticForm3d_GetMutable_c ( MR_QuadraticForm3d * _this)

Returns a mutable pointer to a member variable of class MR::QuadraticForm3d named c. 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_QuadraticForm3d_OffsetMutablePtr()

MRC_API MR_QuadraticForm3d * MR_QuadraticForm3d_OffsetMutablePtr ( MR_QuadraticForm3d * 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_QuadraticForm3d_OffsetPtr()

MRC_API const MR_QuadraticForm3d * MR_QuadraticForm3d_OffsetPtr ( const MR_QuadraticForm3d * 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_QuadraticForm3d_Set_A()

MRC_API void MR_QuadraticForm3d_Set_A ( MR_QuadraticForm3d * _this,
const MR_SymMatrix3d * value )

Modifies a member variable of class MR::QuadraticForm3d named A. Parameter _this can not be null. It is a single object. Parameter value 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_QuadraticForm3d_Set_c()

MRC_API void MR_QuadraticForm3d_Set_c ( MR_QuadraticForm3d * _this,
double value )

Modifies a member variable of class MR::QuadraticForm3d named c. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it had previously in c.

◆ MR_QuadraticForm3f_addDistToLine_1()

MRC_API void MR_QuadraticForm3f_addDistToLine_1 ( MR_QuadraticForm3f * _this,
const MR_Vector3f * lineUnitDir )

adds to this squared distance to line passing via origin with given unit direction Generated from method MR::QuadraticForm3f::addDistToLine. Parameter _this can not be null. It is a single object. Parameter lineUnitDir can not be null. It is a single object.

◆ MR_QuadraticForm3f_addDistToLine_2()

MRC_API void MR_QuadraticForm3f_addDistToLine_2 ( MR_QuadraticForm3f * _this,
const MR_Vector3f * lineUnitDir,
float weight )

Generated from method MR::QuadraticForm3f::addDistToLine. Parameter _this can not be null. It is a single object. Parameter lineUnitDir can not be null. It is a single object.

◆ MR_QuadraticForm3f_addDistToOrigin()

MRC_API void MR_QuadraticForm3f_addDistToOrigin ( MR_QuadraticForm3f * _this,
float weight )

adds to this squared distance to the origin point Generated from method MR::QuadraticForm3f::addDistToOrigin. Parameter _this can not be null. It is a single object.

◆ MR_QuadraticForm3f_addDistToPlane_1()

MRC_API void MR_QuadraticForm3f_addDistToPlane_1 ( MR_QuadraticForm3f * _this,
const MR_Vector3f * planeUnitNormal )

adds to this squared distance to plane passing via origin with given unit normal Generated from method MR::QuadraticForm3f::addDistToPlane. Parameter _this can not be null. It is a single object. Parameter planeUnitNormal can not be null. It is a single object.

◆ MR_QuadraticForm3f_addDistToPlane_2()

MRC_API void MR_QuadraticForm3f_addDistToPlane_2 ( MR_QuadraticForm3f * _this,
const MR_Vector3f * planeUnitNormal,
float weight )

Generated from method MR::QuadraticForm3f::addDistToPlane. Parameter _this can not be null. It is a single object. Parameter planeUnitNormal can not be null. It is a single object.

◆ MR_QuadraticForm3f_AssignFromAnother()

MRC_API MR_QuadraticForm3f * MR_QuadraticForm3f_AssignFromAnother ( MR_QuadraticForm3f * _this,
const MR_QuadraticForm3f * _other )

Generated from method MR::QuadraticForm3f::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_QuadraticForm3f_ConstructFrom()

MRC_API MR_QuadraticForm3f * MR_QuadraticForm3f_ConstructFrom ( const MR_SymMatrix3f * A,
float c )

Constructs MR::QuadraticForm3f elementwise. Parameter A can not be null. It is a single object. The reference to the parameter A might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_QuadraticForm3f_Destroy() to free it when you're done using it. When this function is called, this object will drop any object references it had previously.

◆ MR_QuadraticForm3f_ConstructFromAnother()

MRC_API MR_QuadraticForm3f * MR_QuadraticForm3f_ConstructFromAnother ( const MR_QuadraticForm3f * _other)

Generated from constructor MR::QuadraticForm3f::QuadraticForm3f. 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_QuadraticForm3f_Destroy() to free it when you're done using it.

◆ MR_QuadraticForm3f_DefaultConstruct()

MRC_API MR_QuadraticForm3f * MR_QuadraticForm3f_DefaultConstruct ( void )

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

◆ MR_QuadraticForm3f_DefaultConstructArray()

MRC_API MR_QuadraticForm3f * MR_QuadraticForm3f_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_QuadraticForm3f_DestroyArray(). Use MR_QuadraticForm3f_OffsetMutablePtr() and MR_QuadraticForm3f_OffsetPtr() to access the array elements.

◆ MR_QuadraticForm3f_Destroy()

MRC_API void MR_QuadraticForm3f_Destroy ( const MR_QuadraticForm3f * _this)

Destroys a heap-allocated instance of MR_QuadraticForm3f. Does nothing if the pointer is null.

◆ MR_QuadraticForm3f_DestroyArray()

MRC_API void MR_QuadraticForm3f_DestroyArray ( const MR_QuadraticForm3f * _this)

Destroys a heap-allocated array of MR_QuadraticForm3f. Does nothing if the pointer is null.

◆ MR_QuadraticForm3f_eval()

MRC_API float MR_QuadraticForm3f_eval ( const MR_QuadraticForm3f * _this,
const MR_Vector3f * x )

evaluates the function at given x Generated from method MR::QuadraticForm3f::eval. Parameter _this can not be null. It is a single object. Parameter x can not be null. It is a single object.

◆ MR_QuadraticForm3f_Get_A()

MRC_API const MR_SymMatrix3f * MR_QuadraticForm3f_Get_A ( const MR_QuadraticForm3f * _this)

Returns a pointer to a member variable of class MR::QuadraticForm3f 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_QuadraticForm3f_Get_c()

MRC_API const float * MR_QuadraticForm3f_Get_c ( const MR_QuadraticForm3f * _this)

Returns a pointer to a member variable of class MR::QuadraticForm3f named c. 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_QuadraticForm3f_GetMutable_A()

MRC_API MR_SymMatrix3f * MR_QuadraticForm3f_GetMutable_A ( MR_QuadraticForm3f * _this)

Returns a mutable pointer to a member variable of class MR::QuadraticForm3f 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_QuadraticForm3f_GetMutable_c()

MRC_API float * MR_QuadraticForm3f_GetMutable_c ( MR_QuadraticForm3f * _this)

Returns a mutable pointer to a member variable of class MR::QuadraticForm3f named c. 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_QuadraticForm3f_OffsetMutablePtr()

MRC_API MR_QuadraticForm3f * MR_QuadraticForm3f_OffsetMutablePtr ( MR_QuadraticForm3f * 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_QuadraticForm3f_OffsetPtr()

MRC_API const MR_QuadraticForm3f * MR_QuadraticForm3f_OffsetPtr ( const MR_QuadraticForm3f * 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_QuadraticForm3f_Set_A()

MRC_API void MR_QuadraticForm3f_Set_A ( MR_QuadraticForm3f * _this,
const MR_SymMatrix3f * value )

Modifies a member variable of class MR::QuadraticForm3f named A. Parameter _this can not be null. It is a single object. Parameter value 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_QuadraticForm3f_Set_c()

MRC_API void MR_QuadraticForm3f_Set_c ( MR_QuadraticForm3f * _this,
float value )

Modifies a member variable of class MR::QuadraticForm3f named c. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it had previously in c.