MeshLib C Docs
Loading...
Searching...
No Matches
MRSphere.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_Sphere2f MR_Sphere2f
 
typedef struct MR_Sphere2d MR_Sphere2d
 
typedef struct MR_Sphere3f MR_Sphere3f
 
typedef struct MR_Sphere3d MR_Sphere3d
 

Functions

MRC_API const MR_Vector2fMR_Sphere2f_Get_center (const MR_Sphere2f *_this)
 
MRC_API void MR_Sphere2f_Set_center (MR_Sphere2f *_this, MR_Vector2f value)
 
MRC_API MR_Vector2fMR_Sphere2f_GetMutable_center (MR_Sphere2f *_this)
 
MRC_API const float * MR_Sphere2f_Get_radius (const MR_Sphere2f *_this)
 
MRC_API void MR_Sphere2f_Set_radius (MR_Sphere2f *_this, float value)
 
MRC_API float * MR_Sphere2f_GetMutable_radius (MR_Sphere2f *_this)
 
MRC_API MR_Sphere2fMR_Sphere2f_DefaultConstruct (void)
 
MRC_API MR_Sphere2fMR_Sphere2f_DefaultConstructArray (size_t num_elems)
 
MRC_API const MR_Sphere2fMR_Sphere2f_OffsetPtr (const MR_Sphere2f *ptr, ptrdiff_t i)
 
MRC_API MR_Sphere2fMR_Sphere2f_OffsetMutablePtr (MR_Sphere2f *ptr, ptrdiff_t i)
 
MRC_API MR_Sphere2fMR_Sphere2f_ConstructFromAnother (const MR_Sphere2f *_other)
 
MRC_API MR_Sphere2fMR_Sphere2f_Construct (const MR_Vector2f *c, float r)
 
MRC_API void MR_Sphere2f_Destroy (const MR_Sphere2f *_this)
 Destroys a heap-allocated instance of MR_Sphere2f. Does nothing if the pointer is null.
 
MRC_API void MR_Sphere2f_DestroyArray (const MR_Sphere2f *_this)
 Destroys a heap-allocated array of MR_Sphere2f. Does nothing if the pointer is null.
 
MRC_API MR_Sphere2fMR_Sphere2f_AssignFromAnother (MR_Sphere2f *_this, const MR_Sphere2f *_other)
 
MRC_API MR_Vector2f MR_Sphere2f_project (const MR_Sphere2f *_this, const MR_Vector2f *x)
 
MRC_API float MR_Sphere2f_distance (const MR_Sphere2f *_this, const MR_Vector2f *x)
 
MRC_API float MR_Sphere2f_distanceSq (const MR_Sphere2f *_this, const MR_Vector2f *x)
 
MRC_API bool MR_equal_MR_Sphere2f (const MR_Sphere2f *a, const MR_Sphere2f *b)
 
MRC_API const MR_Vector2dMR_Sphere2d_Get_center (const MR_Sphere2d *_this)
 
MRC_API void MR_Sphere2d_Set_center (MR_Sphere2d *_this, MR_Vector2d value)
 
MRC_API MR_Vector2dMR_Sphere2d_GetMutable_center (MR_Sphere2d *_this)
 
MRC_API const double * MR_Sphere2d_Get_radius (const MR_Sphere2d *_this)
 
MRC_API void MR_Sphere2d_Set_radius (MR_Sphere2d *_this, double value)
 
MRC_API double * MR_Sphere2d_GetMutable_radius (MR_Sphere2d *_this)
 
MRC_API MR_Sphere2dMR_Sphere2d_DefaultConstruct (void)
 
MRC_API MR_Sphere2dMR_Sphere2d_DefaultConstructArray (size_t num_elems)
 
MRC_API const MR_Sphere2dMR_Sphere2d_OffsetPtr (const MR_Sphere2d *ptr, ptrdiff_t i)
 
MRC_API MR_Sphere2dMR_Sphere2d_OffsetMutablePtr (MR_Sphere2d *ptr, ptrdiff_t i)
 
MRC_API MR_Sphere2dMR_Sphere2d_ConstructFromAnother (const MR_Sphere2d *_other)
 
MRC_API MR_Sphere2dMR_Sphere2d_Construct (const MR_Vector2d *c, double r)
 
MRC_API void MR_Sphere2d_Destroy (const MR_Sphere2d *_this)
 Destroys a heap-allocated instance of MR_Sphere2d. Does nothing if the pointer is null.
 
MRC_API void MR_Sphere2d_DestroyArray (const MR_Sphere2d *_this)
 Destroys a heap-allocated array of MR_Sphere2d. Does nothing if the pointer is null.
 
MRC_API MR_Sphere2dMR_Sphere2d_AssignFromAnother (MR_Sphere2d *_this, const MR_Sphere2d *_other)
 
MRC_API MR_Vector2d MR_Sphere2d_project (const MR_Sphere2d *_this, const MR_Vector2d *x)
 
MRC_API double MR_Sphere2d_distance (const MR_Sphere2d *_this, const MR_Vector2d *x)
 
MRC_API double MR_Sphere2d_distanceSq (const MR_Sphere2d *_this, const MR_Vector2d *x)
 
MRC_API bool MR_equal_MR_Sphere2d (const MR_Sphere2d *a, const MR_Sphere2d *b)
 
MRC_API const MR_Vector3fMR_Sphere3f_Get_center (const MR_Sphere3f *_this)
 
MRC_API void MR_Sphere3f_Set_center (MR_Sphere3f *_this, MR_Vector3f value)
 
MRC_API MR_Vector3fMR_Sphere3f_GetMutable_center (MR_Sphere3f *_this)
 
MRC_API const float * MR_Sphere3f_Get_radius (const MR_Sphere3f *_this)
 
MRC_API void MR_Sphere3f_Set_radius (MR_Sphere3f *_this, float value)
 
MRC_API float * MR_Sphere3f_GetMutable_radius (MR_Sphere3f *_this)
 
MRC_API MR_Sphere3fMR_Sphere3f_DefaultConstruct (void)
 
MRC_API MR_Sphere3fMR_Sphere3f_DefaultConstructArray (size_t num_elems)
 
MRC_API const MR_Sphere3fMR_Sphere3f_OffsetPtr (const MR_Sphere3f *ptr, ptrdiff_t i)
 
MRC_API MR_Sphere3fMR_Sphere3f_OffsetMutablePtr (MR_Sphere3f *ptr, ptrdiff_t i)
 
MRC_API MR_Sphere3fMR_Sphere3f_ConstructFromAnother (const MR_Sphere3f *_other)
 
MRC_API MR_Sphere3fMR_Sphere3f_Construct (const MR_Vector3f *c, float r)
 
MRC_API void MR_Sphere3f_Destroy (const MR_Sphere3f *_this)
 Destroys a heap-allocated instance of MR_Sphere3f. Does nothing if the pointer is null.
 
MRC_API void MR_Sphere3f_DestroyArray (const MR_Sphere3f *_this)
 Destroys a heap-allocated array of MR_Sphere3f. Does nothing if the pointer is null.
 
MRC_API MR_Sphere3fMR_Sphere3f_AssignFromAnother (MR_Sphere3f *_this, const MR_Sphere3f *_other)
 
MRC_API MR_Vector3f MR_Sphere3f_project (const MR_Sphere3f *_this, const MR_Vector3f *x)
 
MRC_API float MR_Sphere3f_distance (const MR_Sphere3f *_this, const MR_Vector3f *x)
 
MRC_API float MR_Sphere3f_distanceSq (const MR_Sphere3f *_this, const MR_Vector3f *x)
 
MRC_API bool MR_equal_MR_Sphere3f (const MR_Sphere3f *a, const MR_Sphere3f *b)
 
MRC_API const MR_Vector3dMR_Sphere3d_Get_center (const MR_Sphere3d *_this)
 
MRC_API void MR_Sphere3d_Set_center (MR_Sphere3d *_this, MR_Vector3d value)
 
MRC_API MR_Vector3dMR_Sphere3d_GetMutable_center (MR_Sphere3d *_this)
 
MRC_API const double * MR_Sphere3d_Get_radius (const MR_Sphere3d *_this)
 
MRC_API void MR_Sphere3d_Set_radius (MR_Sphere3d *_this, double value)
 
MRC_API double * MR_Sphere3d_GetMutable_radius (MR_Sphere3d *_this)
 
MRC_API MR_Sphere3dMR_Sphere3d_DefaultConstruct (void)
 
MRC_API MR_Sphere3dMR_Sphere3d_DefaultConstructArray (size_t num_elems)
 
MRC_API const MR_Sphere3dMR_Sphere3d_OffsetPtr (const MR_Sphere3d *ptr, ptrdiff_t i)
 
MRC_API MR_Sphere3dMR_Sphere3d_OffsetMutablePtr (MR_Sphere3d *ptr, ptrdiff_t i)
 
MRC_API MR_Sphere3dMR_Sphere3d_ConstructFromAnother (const MR_Sphere3d *_other)
 
MRC_API MR_Sphere3dMR_Sphere3d_Construct (const MR_Vector3d *c, double r)
 
MRC_API void MR_Sphere3d_Destroy (const MR_Sphere3d *_this)
 Destroys a heap-allocated instance of MR_Sphere3d. Does nothing if the pointer is null.
 
MRC_API void MR_Sphere3d_DestroyArray (const MR_Sphere3d *_this)
 Destroys a heap-allocated array of MR_Sphere3d. Does nothing if the pointer is null.
 
MRC_API MR_Sphere3dMR_Sphere3d_AssignFromAnother (MR_Sphere3d *_this, const MR_Sphere3d *_other)
 
MRC_API MR_Vector3d MR_Sphere3d_project (const MR_Sphere3d *_this, const MR_Vector3d *x)
 
MRC_API double MR_Sphere3d_distance (const MR_Sphere3d *_this, const MR_Vector3d *x)
 
MRC_API double MR_Sphere3d_distanceSq (const MR_Sphere3d *_this, const MR_Vector3d *x)
 
MRC_API bool MR_equal_MR_Sphere3d (const MR_Sphere3d *a, const MR_Sphere3d *b)
 

Typedef Documentation

◆ MR_Sphere2d

typedef struct MR_Sphere2d MR_Sphere2d

Generated from class MR::Sphere2d. 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_Sphere2f

typedef struct MR_Sphere2f MR_Sphere2f

Generated from class MR::Sphere2f. 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_Sphere3d

typedef struct MR_Sphere3d MR_Sphere3d

Generated from class MR::Sphere3d. 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_Sphere3f

typedef struct MR_Sphere3f MR_Sphere3f

Generated from class MR::Sphere3f. 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_equal_MR_Sphere2d()

MRC_API bool MR_equal_MR_Sphere2d ( const MR_Sphere2d * a,
const MR_Sphere2d * b )

Generated from function MR::operator==. Parameter a can not be null. It is a single object. Parameter b can not be null. It is a single object.

◆ MR_equal_MR_Sphere2f()

MRC_API bool MR_equal_MR_Sphere2f ( const MR_Sphere2f * a,
const MR_Sphere2f * b )

Generated from function MR::operator==. Parameter a can not be null. It is a single object. Parameter b can not be null. It is a single object.

◆ MR_equal_MR_Sphere3d()

MRC_API bool MR_equal_MR_Sphere3d ( const MR_Sphere3d * a,
const MR_Sphere3d * b )

Generated from function MR::operator==. Parameter a can not be null. It is a single object. Parameter b can not be null. It is a single object.

◆ MR_equal_MR_Sphere3f()

MRC_API bool MR_equal_MR_Sphere3f ( const MR_Sphere3f * a,
const MR_Sphere3f * b )

Generated from function MR::operator==. Parameter a can not be null. It is a single object. Parameter b can not be null. It is a single object.

◆ MR_Sphere2d_AssignFromAnother()

MRC_API MR_Sphere2d * MR_Sphere2d_AssignFromAnother ( MR_Sphere2d * _this,
const MR_Sphere2d * _other )

Generated from method MR::Sphere2d::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_Sphere2d_Construct()

MRC_API MR_Sphere2d * MR_Sphere2d_Construct ( const MR_Vector2d * c,
double r )

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

◆ MR_Sphere2d_ConstructFromAnother()

MRC_API MR_Sphere2d * MR_Sphere2d_ConstructFromAnother ( const MR_Sphere2d * _other)

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

◆ MR_Sphere2d_DefaultConstruct()

MRC_API MR_Sphere2d * MR_Sphere2d_DefaultConstruct ( void )

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

◆ MR_Sphere2d_DefaultConstructArray()

MRC_API MR_Sphere2d * MR_Sphere2d_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_Sphere2d_DestroyArray(). Use MR_Sphere2d_OffsetMutablePtr() and MR_Sphere2d_OffsetPtr() to access the array elements.

◆ MR_Sphere2d_Destroy()

MRC_API void MR_Sphere2d_Destroy ( const MR_Sphere2d * _this)

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

◆ MR_Sphere2d_DestroyArray()

MRC_API void MR_Sphere2d_DestroyArray ( const MR_Sphere2d * _this)

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

◆ MR_Sphere2d_distance()

MRC_API double MR_Sphere2d_distance ( const MR_Sphere2d * _this,
const MR_Vector2d * x )

returns signed distance from given point to this sphere: positive - outside, zero - on sphere, negative - inside Generated from method MR::Sphere2d::distance. Parameter _this can not be null. It is a single object. Parameter x can not be null. It is a single object.

◆ MR_Sphere2d_distanceSq()

MRC_API double MR_Sphere2d_distanceSq ( const MR_Sphere2d * _this,
const MR_Vector2d * x )

returns squared distance from given point to this sphere Generated from method MR::Sphere2d::distanceSq. Parameter _this can not be null. It is a single object. Parameter x can not be null. It is a single object.

◆ MR_Sphere2d_Get_center()

MRC_API const MR_Vector2d * MR_Sphere2d_Get_center ( const MR_Sphere2d * _this)

Returns a pointer to a member variable of class MR::Sphere2d named center. 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_Sphere2d_Get_radius()

MRC_API const double * MR_Sphere2d_Get_radius ( const MR_Sphere2d * _this)

Returns a pointer to a member variable of class MR::Sphere2d named radius. 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_Sphere2d_GetMutable_center()

MRC_API MR_Vector2d * MR_Sphere2d_GetMutable_center ( MR_Sphere2d * _this)

Returns a mutable pointer to a member variable of class MR::Sphere2d named center. 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_Sphere2d_GetMutable_radius()

MRC_API double * MR_Sphere2d_GetMutable_radius ( MR_Sphere2d * _this)

Returns a mutable pointer to a member variable of class MR::Sphere2d named radius. 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_Sphere2d_OffsetMutablePtr()

MRC_API MR_Sphere2d * MR_Sphere2d_OffsetMutablePtr ( MR_Sphere2d * 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_Sphere2d_OffsetPtr()

MRC_API const MR_Sphere2d * MR_Sphere2d_OffsetPtr ( const MR_Sphere2d * 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_Sphere2d_project()

MRC_API MR_Vector2d MR_Sphere2d_project ( const MR_Sphere2d * _this,
const MR_Vector2d * x )

finds the closest point on sphere Generated from method MR::Sphere2d::project. Parameter _this can not be null. It is a single object. Parameter x can not be null. It is a single object.

◆ MR_Sphere2d_Set_center()

MRC_API void MR_Sphere2d_Set_center ( MR_Sphere2d * _this,
MR_Vector2d value )

Modifies a member variable of class MR::Sphere2d named center. 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 center. When this function is called, this object will drop object references it had previously in center.

◆ MR_Sphere2d_Set_radius()

MRC_API void MR_Sphere2d_Set_radius ( MR_Sphere2d * _this,
double value )

Modifies a member variable of class MR::Sphere2d named radius. 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 radius.

◆ MR_Sphere2f_AssignFromAnother()

MRC_API MR_Sphere2f * MR_Sphere2f_AssignFromAnother ( MR_Sphere2f * _this,
const MR_Sphere2f * _other )

Generated from method MR::Sphere2f::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_Sphere2f_Construct()

MRC_API MR_Sphere2f * MR_Sphere2f_Construct ( const MR_Vector2f * c,
float r )

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

◆ MR_Sphere2f_ConstructFromAnother()

MRC_API MR_Sphere2f * MR_Sphere2f_ConstructFromAnother ( const MR_Sphere2f * _other)

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

◆ MR_Sphere2f_DefaultConstruct()

MRC_API MR_Sphere2f * MR_Sphere2f_DefaultConstruct ( void )

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

◆ MR_Sphere2f_DefaultConstructArray()

MRC_API MR_Sphere2f * MR_Sphere2f_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_Sphere2f_DestroyArray(). Use MR_Sphere2f_OffsetMutablePtr() and MR_Sphere2f_OffsetPtr() to access the array elements.

◆ MR_Sphere2f_Destroy()

MRC_API void MR_Sphere2f_Destroy ( const MR_Sphere2f * _this)

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

◆ MR_Sphere2f_DestroyArray()

MRC_API void MR_Sphere2f_DestroyArray ( const MR_Sphere2f * _this)

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

◆ MR_Sphere2f_distance()

MRC_API float MR_Sphere2f_distance ( const MR_Sphere2f * _this,
const MR_Vector2f * x )

returns signed distance from given point to this sphere: positive - outside, zero - on sphere, negative - inside Generated from method MR::Sphere2f::distance. Parameter _this can not be null. It is a single object. Parameter x can not be null. It is a single object.

◆ MR_Sphere2f_distanceSq()

MRC_API float MR_Sphere2f_distanceSq ( const MR_Sphere2f * _this,
const MR_Vector2f * x )

returns squared distance from given point to this sphere Generated from method MR::Sphere2f::distanceSq. Parameter _this can not be null. It is a single object. Parameter x can not be null. It is a single object.

◆ MR_Sphere2f_Get_center()

MRC_API const MR_Vector2f * MR_Sphere2f_Get_center ( const MR_Sphere2f * _this)

Returns a pointer to a member variable of class MR::Sphere2f named center. 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_Sphere2f_Get_radius()

MRC_API const float * MR_Sphere2f_Get_radius ( const MR_Sphere2f * _this)

Returns a pointer to a member variable of class MR::Sphere2f named radius. 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_Sphere2f_GetMutable_center()

MRC_API MR_Vector2f * MR_Sphere2f_GetMutable_center ( MR_Sphere2f * _this)

Returns a mutable pointer to a member variable of class MR::Sphere2f named center. 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_Sphere2f_GetMutable_radius()

MRC_API float * MR_Sphere2f_GetMutable_radius ( MR_Sphere2f * _this)

Returns a mutable pointer to a member variable of class MR::Sphere2f named radius. 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_Sphere2f_OffsetMutablePtr()

MRC_API MR_Sphere2f * MR_Sphere2f_OffsetMutablePtr ( MR_Sphere2f * 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_Sphere2f_OffsetPtr()

MRC_API const MR_Sphere2f * MR_Sphere2f_OffsetPtr ( const MR_Sphere2f * 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_Sphere2f_project()

MRC_API MR_Vector2f MR_Sphere2f_project ( const MR_Sphere2f * _this,
const MR_Vector2f * x )

finds the closest point on sphere Generated from method MR::Sphere2f::project. Parameter _this can not be null. It is a single object. Parameter x can not be null. It is a single object.

◆ MR_Sphere2f_Set_center()

MRC_API void MR_Sphere2f_Set_center ( MR_Sphere2f * _this,
MR_Vector2f value )

Modifies a member variable of class MR::Sphere2f named center. 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 center. When this function is called, this object will drop object references it had previously in center.

◆ MR_Sphere2f_Set_radius()

MRC_API void MR_Sphere2f_Set_radius ( MR_Sphere2f * _this,
float value )

Modifies a member variable of class MR::Sphere2f named radius. 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 radius.

◆ MR_Sphere3d_AssignFromAnother()

MRC_API MR_Sphere3d * MR_Sphere3d_AssignFromAnother ( MR_Sphere3d * _this,
const MR_Sphere3d * _other )

Generated from method MR::Sphere3d::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_Sphere3d_Construct()

MRC_API MR_Sphere3d * MR_Sphere3d_Construct ( const MR_Vector3d * c,
double r )

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

◆ MR_Sphere3d_ConstructFromAnother()

MRC_API MR_Sphere3d * MR_Sphere3d_ConstructFromAnother ( const MR_Sphere3d * _other)

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

◆ MR_Sphere3d_DefaultConstruct()

MRC_API MR_Sphere3d * MR_Sphere3d_DefaultConstruct ( void )

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

◆ MR_Sphere3d_DefaultConstructArray()

MRC_API MR_Sphere3d * MR_Sphere3d_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_Sphere3d_DestroyArray(). Use MR_Sphere3d_OffsetMutablePtr() and MR_Sphere3d_OffsetPtr() to access the array elements.

◆ MR_Sphere3d_Destroy()

MRC_API void MR_Sphere3d_Destroy ( const MR_Sphere3d * _this)

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

◆ MR_Sphere3d_DestroyArray()

MRC_API void MR_Sphere3d_DestroyArray ( const MR_Sphere3d * _this)

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

◆ MR_Sphere3d_distance()

MRC_API double MR_Sphere3d_distance ( const MR_Sphere3d * _this,
const MR_Vector3d * x )

returns signed distance from given point to this sphere: positive - outside, zero - on sphere, negative - inside Generated from method MR::Sphere3d::distance. Parameter _this can not be null. It is a single object. Parameter x can not be null. It is a single object.

◆ MR_Sphere3d_distanceSq()

MRC_API double MR_Sphere3d_distanceSq ( const MR_Sphere3d * _this,
const MR_Vector3d * x )

returns squared distance from given point to this sphere Generated from method MR::Sphere3d::distanceSq. Parameter _this can not be null. It is a single object. Parameter x can not be null. It is a single object.

◆ MR_Sphere3d_Get_center()

MRC_API const MR_Vector3d * MR_Sphere3d_Get_center ( const MR_Sphere3d * _this)

Returns a pointer to a member variable of class MR::Sphere3d named center. 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_Sphere3d_Get_radius()

MRC_API const double * MR_Sphere3d_Get_radius ( const MR_Sphere3d * _this)

Returns a pointer to a member variable of class MR::Sphere3d named radius. 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_Sphere3d_GetMutable_center()

MRC_API MR_Vector3d * MR_Sphere3d_GetMutable_center ( MR_Sphere3d * _this)

Returns a mutable pointer to a member variable of class MR::Sphere3d named center. 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_Sphere3d_GetMutable_radius()

MRC_API double * MR_Sphere3d_GetMutable_radius ( MR_Sphere3d * _this)

Returns a mutable pointer to a member variable of class MR::Sphere3d named radius. 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_Sphere3d_OffsetMutablePtr()

MRC_API MR_Sphere3d * MR_Sphere3d_OffsetMutablePtr ( MR_Sphere3d * 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_Sphere3d_OffsetPtr()

MRC_API const MR_Sphere3d * MR_Sphere3d_OffsetPtr ( const MR_Sphere3d * 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_Sphere3d_project()

MRC_API MR_Vector3d MR_Sphere3d_project ( const MR_Sphere3d * _this,
const MR_Vector3d * x )

finds the closest point on sphere Generated from method MR::Sphere3d::project. Parameter _this can not be null. It is a single object. Parameter x can not be null. It is a single object.

◆ MR_Sphere3d_Set_center()

MRC_API void MR_Sphere3d_Set_center ( MR_Sphere3d * _this,
MR_Vector3d value )

Modifies a member variable of class MR::Sphere3d named center. 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 center. When this function is called, this object will drop object references it had previously in center.

◆ MR_Sphere3d_Set_radius()

MRC_API void MR_Sphere3d_Set_radius ( MR_Sphere3d * _this,
double value )

Modifies a member variable of class MR::Sphere3d named radius. 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 radius.

◆ MR_Sphere3f_AssignFromAnother()

MRC_API MR_Sphere3f * MR_Sphere3f_AssignFromAnother ( MR_Sphere3f * _this,
const MR_Sphere3f * _other )

Generated from method MR::Sphere3f::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_Sphere3f_Construct()

MRC_API MR_Sphere3f * MR_Sphere3f_Construct ( const MR_Vector3f * c,
float r )

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

◆ MR_Sphere3f_ConstructFromAnother()

MRC_API MR_Sphere3f * MR_Sphere3f_ConstructFromAnother ( const MR_Sphere3f * _other)

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

◆ MR_Sphere3f_DefaultConstruct()

MRC_API MR_Sphere3f * MR_Sphere3f_DefaultConstruct ( void )

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

◆ MR_Sphere3f_DefaultConstructArray()

MRC_API MR_Sphere3f * MR_Sphere3f_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_Sphere3f_DestroyArray(). Use MR_Sphere3f_OffsetMutablePtr() and MR_Sphere3f_OffsetPtr() to access the array elements.

◆ MR_Sphere3f_Destroy()

MRC_API void MR_Sphere3f_Destroy ( const MR_Sphere3f * _this)

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

◆ MR_Sphere3f_DestroyArray()

MRC_API void MR_Sphere3f_DestroyArray ( const MR_Sphere3f * _this)

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

◆ MR_Sphere3f_distance()

MRC_API float MR_Sphere3f_distance ( const MR_Sphere3f * _this,
const MR_Vector3f * x )

returns signed distance from given point to this sphere: positive - outside, zero - on sphere, negative - inside Generated from method MR::Sphere3f::distance. Parameter _this can not be null. It is a single object. Parameter x can not be null. It is a single object.

◆ MR_Sphere3f_distanceSq()

MRC_API float MR_Sphere3f_distanceSq ( const MR_Sphere3f * _this,
const MR_Vector3f * x )

returns squared distance from given point to this sphere Generated from method MR::Sphere3f::distanceSq. Parameter _this can not be null. It is a single object. Parameter x can not be null. It is a single object.

◆ MR_Sphere3f_Get_center()

MRC_API const MR_Vector3f * MR_Sphere3f_Get_center ( const MR_Sphere3f * _this)

Returns a pointer to a member variable of class MR::Sphere3f named center. 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_Sphere3f_Get_radius()

MRC_API const float * MR_Sphere3f_Get_radius ( const MR_Sphere3f * _this)

Returns a pointer to a member variable of class MR::Sphere3f named radius. 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_Sphere3f_GetMutable_center()

MRC_API MR_Vector3f * MR_Sphere3f_GetMutable_center ( MR_Sphere3f * _this)

Returns a mutable pointer to a member variable of class MR::Sphere3f named center. 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_Sphere3f_GetMutable_radius()

MRC_API float * MR_Sphere3f_GetMutable_radius ( MR_Sphere3f * _this)

Returns a mutable pointer to a member variable of class MR::Sphere3f named radius. 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_Sphere3f_OffsetMutablePtr()

MRC_API MR_Sphere3f * MR_Sphere3f_OffsetMutablePtr ( MR_Sphere3f * 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_Sphere3f_OffsetPtr()

MRC_API const MR_Sphere3f * MR_Sphere3f_OffsetPtr ( const MR_Sphere3f * 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_Sphere3f_project()

MRC_API MR_Vector3f MR_Sphere3f_project ( const MR_Sphere3f * _this,
const MR_Vector3f * x )

finds the closest point on sphere Generated from method MR::Sphere3f::project. Parameter _this can not be null. It is a single object. Parameter x can not be null. It is a single object.

◆ MR_Sphere3f_Set_center()

MRC_API void MR_Sphere3f_Set_center ( MR_Sphere3f * _this,
MR_Vector3f value )

Modifies a member variable of class MR::Sphere3f named center. 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 center. When this function is called, this object will drop object references it had previously in center.

◆ MR_Sphere3f_Set_radius()

MRC_API void MR_Sphere3f_Set_radius ( MR_Sphere3f * _this,
float value )

Modifies a member variable of class MR::Sphere3f named radius. 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 radius.