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

Go to the source code of this file.

Typedefs

typedef struct MR_Parabolaf MR_Parabolaf
 
typedef struct MR_Parabolad MR_Parabolad
 

Functions

MRC_API const float * MR_Parabolaf_Get_a (const MR_Parabolaf *_this)
 
MRC_API void MR_Parabolaf_Set_a (MR_Parabolaf *_this, float value)
 
MRC_API float * MR_Parabolaf_GetMutable_a (MR_Parabolaf *_this)
 
MRC_API const float * MR_Parabolaf_Get_b (const MR_Parabolaf *_this)
 
MRC_API void MR_Parabolaf_Set_b (MR_Parabolaf *_this, float value)
 
MRC_API float * MR_Parabolaf_GetMutable_b (MR_Parabolaf *_this)
 
MRC_API const float * MR_Parabolaf_Get_c (const MR_Parabolaf *_this)
 
MRC_API void MR_Parabolaf_Set_c (MR_Parabolaf *_this, float value)
 
MRC_API float * MR_Parabolaf_GetMutable_c (MR_Parabolaf *_this)
 
MRC_API MR_ParabolafMR_Parabolaf_DefaultConstruct (void)
 
MRC_API MR_ParabolafMR_Parabolaf_DefaultConstructArray (size_t num_elems)
 
MRC_API const MR_ParabolafMR_Parabolaf_OffsetPtr (const MR_Parabolaf *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.
 
MRC_API MR_ParabolafMR_Parabolaf_OffsetMutablePtr (MR_Parabolaf *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.
 
MRC_API MR_ParabolafMR_Parabolaf_ConstructFromAnother (const MR_Parabolaf *_other)
 
MRC_API MR_ParabolafMR_Parabolaf_Construct (float a, float b, float c)
 
MRC_API void MR_Parabolaf_Destroy (const MR_Parabolaf *_this)
 Destroys a heap-allocated instance of MR_Parabolaf. Does nothing if the pointer is null.
 
MRC_API void MR_Parabolaf_DestroyArray (const MR_Parabolaf *_this)
 Destroys a heap-allocated array of MR_Parabolaf. Does nothing if the pointer is null.
 
MRC_API MR_ParabolafMR_Parabolaf_AssignFromAnother (MR_Parabolaf *_this, const MR_Parabolaf *_other)
 
MRC_API float MR_Parabolaf_call (const MR_Parabolaf *_this, float x)
 
MRC_API float MR_Parabolaf_extremArg (const MR_Parabolaf *_this)
 
MRC_API float MR_Parabolaf_extremVal (const MR_Parabolaf *_this)
 
MRC_API const double * MR_Parabolad_Get_a (const MR_Parabolad *_this)
 
MRC_API void MR_Parabolad_Set_a (MR_Parabolad *_this, double value)
 
MRC_API double * MR_Parabolad_GetMutable_a (MR_Parabolad *_this)
 
MRC_API const double * MR_Parabolad_Get_b (const MR_Parabolad *_this)
 
MRC_API void MR_Parabolad_Set_b (MR_Parabolad *_this, double value)
 
MRC_API double * MR_Parabolad_GetMutable_b (MR_Parabolad *_this)
 
MRC_API const double * MR_Parabolad_Get_c (const MR_Parabolad *_this)
 
MRC_API void MR_Parabolad_Set_c (MR_Parabolad *_this, double value)
 
MRC_API double * MR_Parabolad_GetMutable_c (MR_Parabolad *_this)
 
MRC_API MR_ParaboladMR_Parabolad_DefaultConstruct (void)
 
MRC_API MR_ParaboladMR_Parabolad_DefaultConstructArray (size_t num_elems)
 
MRC_API const MR_ParaboladMR_Parabolad_OffsetPtr (const MR_Parabolad *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.
 
MRC_API MR_ParaboladMR_Parabolad_OffsetMutablePtr (MR_Parabolad *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.
 
MRC_API MR_ParaboladMR_Parabolad_ConstructFromAnother (const MR_Parabolad *_other)
 
MRC_API MR_ParaboladMR_Parabolad_Construct (double a, double b, double c)
 
MRC_API void MR_Parabolad_Destroy (const MR_Parabolad *_this)
 Destroys a heap-allocated instance of MR_Parabolad. Does nothing if the pointer is null.
 
MRC_API void MR_Parabolad_DestroyArray (const MR_Parabolad *_this)
 Destroys a heap-allocated array of MR_Parabolad. Does nothing if the pointer is null.
 
MRC_API MR_ParaboladMR_Parabolad_AssignFromAnother (MR_Parabolad *_this, const MR_Parabolad *_other)
 
MRC_API double MR_Parabolad_call (const MR_Parabolad *_this, double x)
 
MRC_API double MR_Parabolad_extremArg (const MR_Parabolad *_this)
 
MRC_API double MR_Parabolad_extremVal (const MR_Parabolad *_this)
 

Typedef Documentation

◆ MR_Parabolad

typedef struct MR_Parabolad MR_Parabolad

Represents quadratic function f(x) = a*x*x + b*x + c Generated from class MR::Parabolad.

◆ MR_Parabolaf

typedef struct MR_Parabolaf MR_Parabolaf

Represents quadratic function f(x) = a*x*x + b*x + c Generated from class MR::Parabolaf.

Function Documentation

◆ MR_Parabolad_AssignFromAnother()

MRC_API MR_Parabolad * MR_Parabolad_AssignFromAnother ( MR_Parabolad * _this,
const MR_Parabolad * _other )

Generated from a method of class MR::Parabolad named operator=. Parameter _this can not be null. It is a single object. Parameter _other 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_Parabolad_call()

MRC_API double MR_Parabolad_call ( const MR_Parabolad * _this,
double x )

compute value of quadratic function at any x Generated from a method of class MR::Parabolad named operator(). Parameter _this can not be null. It is a single object.

◆ MR_Parabolad_Construct()

MRC_API MR_Parabolad * MR_Parabolad_Construct ( double a,
double b,
double c )

Generated from a constructor of class MR::Parabolad. Never returns null. Returns an instance allocated on the heap! Must call MR_Parabolad_Destroy() to free it when you're done using it.

◆ MR_Parabolad_ConstructFromAnother()

MRC_API MR_Parabolad * MR_Parabolad_ConstructFromAnother ( const MR_Parabolad * _other)

Generated from a constructor of class MR::Parabolad. Parameter _other can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_Parabolad_Destroy() to free it when you're done using it.

◆ MR_Parabolad_DefaultConstruct()

MRC_API MR_Parabolad * MR_Parabolad_DefaultConstruct ( void )

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

◆ MR_Parabolad_DefaultConstructArray()

MRC_API MR_Parabolad * MR_Parabolad_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_Parabolad_DestroyArray(). Use MR_Parabolad_OffsetMutablePtr() and MR_Parabolad_OffsetPtr() to access the array elements.

◆ MR_Parabolad_Destroy()

MRC_API void MR_Parabolad_Destroy ( const MR_Parabolad * _this)

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

◆ MR_Parabolad_DestroyArray()

MRC_API void MR_Parabolad_DestroyArray ( const MR_Parabolad * _this)

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

◆ MR_Parabolad_extremArg()

MRC_API double MR_Parabolad_extremArg ( const MR_Parabolad * _this)

argument (x) where parabola reaches extremal value: minimum for a > 0, maximum for a < 0 Generated from a method of class MR::Parabolad named extremArg. Parameter _this can not be null. It is a single object.

◆ MR_Parabolad_extremVal()

MRC_API double MR_Parabolad_extremVal ( const MR_Parabolad * _this)

value (y) where parabola reaches extremal value: minimum for a > 0, maximum for a < 0 Generated from a method of class MR::Parabolad named extremVal. Parameter _this can not be null. It is a single object.

◆ MR_Parabolad_Get_a()

MRC_API const double * MR_Parabolad_Get_a ( const MR_Parabolad * _this)

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

MRC_API const double * MR_Parabolad_Get_b ( const MR_Parabolad * _this)

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

MRC_API const double * MR_Parabolad_Get_c ( const MR_Parabolad * _this)

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

MRC_API double * MR_Parabolad_GetMutable_a ( MR_Parabolad * _this)

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

MRC_API double * MR_Parabolad_GetMutable_b ( MR_Parabolad * _this)

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

MRC_API double * MR_Parabolad_GetMutable_c ( MR_Parabolad * _this)

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

MRC_API MR_Parabolad * MR_Parabolad_OffsetMutablePtr ( MR_Parabolad * 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.

◆ MR_Parabolad_OffsetPtr()

MRC_API const MR_Parabolad * MR_Parabolad_OffsetPtr ( const MR_Parabolad * 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.

◆ MR_Parabolad_Set_a()

MRC_API void MR_Parabolad_Set_a ( MR_Parabolad * _this,
double value )

Modifies a member variable of class MR::Parabolad named a. Parameter _this can not be null. It is a single object.

◆ MR_Parabolad_Set_b()

MRC_API void MR_Parabolad_Set_b ( MR_Parabolad * _this,
double value )

Modifies a member variable of class MR::Parabolad named b. Parameter _this can not be null. It is a single object.

◆ MR_Parabolad_Set_c()

MRC_API void MR_Parabolad_Set_c ( MR_Parabolad * _this,
double value )

Modifies a member variable of class MR::Parabolad named c. Parameter _this can not be null. It is a single object.

◆ MR_Parabolaf_AssignFromAnother()

MRC_API MR_Parabolaf * MR_Parabolaf_AssignFromAnother ( MR_Parabolaf * _this,
const MR_Parabolaf * _other )

Generated from a method of class MR::Parabolaf named operator=. Parameter _this can not be null. It is a single object. Parameter _other 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_Parabolaf_call()

MRC_API float MR_Parabolaf_call ( const MR_Parabolaf * _this,
float x )

compute value of quadratic function at any x Generated from a method of class MR::Parabolaf named operator(). Parameter _this can not be null. It is a single object.

◆ MR_Parabolaf_Construct()

MRC_API MR_Parabolaf * MR_Parabolaf_Construct ( float a,
float b,
float c )

Generated from a constructor of class MR::Parabolaf. Never returns null. Returns an instance allocated on the heap! Must call MR_Parabolaf_Destroy() to free it when you're done using it.

◆ MR_Parabolaf_ConstructFromAnother()

MRC_API MR_Parabolaf * MR_Parabolaf_ConstructFromAnother ( const MR_Parabolaf * _other)

Generated from a constructor of class MR::Parabolaf. Parameter _other can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_Parabolaf_Destroy() to free it when you're done using it.

◆ MR_Parabolaf_DefaultConstruct()

MRC_API MR_Parabolaf * MR_Parabolaf_DefaultConstruct ( void )

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

◆ MR_Parabolaf_DefaultConstructArray()

MRC_API MR_Parabolaf * MR_Parabolaf_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_Parabolaf_DestroyArray(). Use MR_Parabolaf_OffsetMutablePtr() and MR_Parabolaf_OffsetPtr() to access the array elements.

◆ MR_Parabolaf_Destroy()

MRC_API void MR_Parabolaf_Destroy ( const MR_Parabolaf * _this)

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

◆ MR_Parabolaf_DestroyArray()

MRC_API void MR_Parabolaf_DestroyArray ( const MR_Parabolaf * _this)

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

◆ MR_Parabolaf_extremArg()

MRC_API float MR_Parabolaf_extremArg ( const MR_Parabolaf * _this)

argument (x) where parabola reaches extremal value: minimum for a > 0, maximum for a < 0 Generated from a method of class MR::Parabolaf named extremArg. Parameter _this can not be null. It is a single object.

◆ MR_Parabolaf_extremVal()

MRC_API float MR_Parabolaf_extremVal ( const MR_Parabolaf * _this)

value (y) where parabola reaches extremal value: minimum for a > 0, maximum for a < 0 Generated from a method of class MR::Parabolaf named extremVal. Parameter _this can not be null. It is a single object.

◆ MR_Parabolaf_Get_a()

MRC_API const float * MR_Parabolaf_Get_a ( const MR_Parabolaf * _this)

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

MRC_API const float * MR_Parabolaf_Get_b ( const MR_Parabolaf * _this)

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

MRC_API const float * MR_Parabolaf_Get_c ( const MR_Parabolaf * _this)

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

MRC_API float * MR_Parabolaf_GetMutable_a ( MR_Parabolaf * _this)

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

MRC_API float * MR_Parabolaf_GetMutable_b ( MR_Parabolaf * _this)

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

MRC_API float * MR_Parabolaf_GetMutable_c ( MR_Parabolaf * _this)

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

MRC_API MR_Parabolaf * MR_Parabolaf_OffsetMutablePtr ( MR_Parabolaf * 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.

◆ MR_Parabolaf_OffsetPtr()

MRC_API const MR_Parabolaf * MR_Parabolaf_OffsetPtr ( const MR_Parabolaf * 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.

◆ MR_Parabolaf_Set_a()

MRC_API void MR_Parabolaf_Set_a ( MR_Parabolaf * _this,
float value )

Modifies a member variable of class MR::Parabolaf named a. Parameter _this can not be null. It is a single object.

◆ MR_Parabolaf_Set_b()

MRC_API void MR_Parabolaf_Set_b ( MR_Parabolaf * _this,
float value )

Modifies a member variable of class MR::Parabolaf named b. Parameter _this can not be null. It is a single object.

◆ MR_Parabolaf_Set_c()

MRC_API void MR_Parabolaf_Set_c ( MR_Parabolaf * _this,
float value )

Modifies a member variable of class MR::Parabolaf named c. Parameter _this can not be null. It is a single object.