MeshLib C Docs
Loading...
Searching...
No Matches
MRRayBoxIntersection.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/exports.h>
4
5#include <stdbool.h>
6#include <stddef.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12typedef struct MR_Box3f MR_Box3f; // Defined in `#include <MRCMesh/MRBox.h>`.
13typedef struct MR_IntersectionPrecomputes_float MR_IntersectionPrecomputes_float; // Defined in `#include <MRCMesh/MRIntersectionPrecomputes.h>`.
14typedef struct MR_Line3f MR_Line3f; // Defined in `#include <MRCMesh/MRLine.h>`.
15typedef struct MR_Vector3f MR_Vector3f; // Defined in `#include <MRCMesh/MRVector3.h>`.
16
17
21
27
31
35
41
44
47
55
65MRC_API bool MR_rayBoxIntersect_5(const MR_Box3f *box, const MR_RayOrigin_float *rayOrigin, float *t0, float *t1, const MR_IntersectionPrecomputes_float *prec);
66
70MRC_API bool MR_rayBoxIntersect_4_MR_Box3f(const MR_Box3f *box, const MR_Line3f *line, float t0, float t1);
71
72#ifdef __cplusplus
73} // extern "C"
74#endif
struct MR_Line3f MR_Line3f
Definition MRBestFit.h:17
struct MR_IntersectionPrecomputes_float MR_IntersectionPrecomputes_float
Definition MRIntersectionPrecomputes.h:17
MRC_API bool MR_rayBoxIntersect_4_MR_Box3f(const MR_Box3f *box, const MR_Line3f *line, float t0, float t1)
MRC_API const MR_RayOrigin_float * MR_RayOrigin_float_OffsetPtr(const MR_RayOrigin_float *ptr, ptrdiff_t i)
MRC_API void MR_RayOrigin_float_DestroyArray(const MR_RayOrigin_float *_this)
Destroys a heap-allocated array of MR_RayOrigin_float. Does nothing if the pointer is null.
MRC_API MR_RayOrigin_float * MR_RayOrigin_float_ConstructFromAnother(const MR_RayOrigin_float *_other)
MRC_API MR_RayOrigin_float * MR_RayOrigin_float_Construct(const MR_Vector3f *ro)
MRC_API MR_RayOrigin_float * MR_RayOrigin_float_AssignFromAnother(MR_RayOrigin_float *_this, const MR_RayOrigin_float *_other)
MRC_API MR_RayOrigin_float * MR_RayOrigin_float_OffsetMutablePtr(MR_RayOrigin_float *ptr, ptrdiff_t i)
MRC_API bool MR_rayBoxIntersect_5(const MR_Box3f *box, const MR_RayOrigin_float *rayOrigin, float *t0, float *t1, const MR_IntersectionPrecomputes_float *prec)
MRC_API void MR_RayOrigin_float_Destroy(const MR_RayOrigin_float *_this)
Destroys a heap-allocated instance of MR_RayOrigin_float. Does nothing if the pointer is null.
struct MR_RayOrigin_float MR_RayOrigin_float
Definition MRRayBoxIntersection.h:20
#define MRC_API
Definition exports.h:11
Definition MRBox.h:110
Definition MRVector3.h:52