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

Go to the source code of this file.

Typedefs

typedef struct MR_LineSegm2f MR_LineSegm2f

Functions

MRC_API MR_std_optional_MR_Vector2fMR_intersection (const MR_LineSegm2f *segm1, const MR_LineSegm2f *segm2)

Typedef Documentation

◆ MR_LineSegm2f

typedef struct MR_LineSegm2f MR_LineSegm2f

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

Function Documentation

◆ MR_intersection()

MRC_API MR_std_optional_MR_Vector2f * MR_intersection ( const MR_LineSegm2f * segm1,
const MR_LineSegm2f * segm2 )

finds an intersection between a segm1 and a segm2

Returns
nullopt if they don't intersect (even if they match) Generated from function MR::intersection. Parameter segm1 can not be null. It is a single object. Parameter segm2 can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_std_optional_MR_Vector2f_Destroy() to free it when you're done using it.