/
Zamar_Terrier
/
TigorEngine
Обзор
Документация
Войти
/
Zamar_Terrier
/
TigorEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
includes/Variabels/std_intersect.h
87 строк
1 KB
zamarterrier
firts upload
13 сен 2024, 10:05
13 сен 2024, 10:05
db4bbc4
Код
Авторство
О чём код?
#ifndef STD_INTERSECT_H #define STD_INTERSECT_H #include "engine_includes.h" #include "Tools/e_math.h" #ifdef __cplusplus extern "C" { #endif typedef struct{ vec3 position; float radius; float height; } InterCapsuleParam; typedef struct{ vec2 center; float radius; } InterCircleParam; typedef struct{ vec3 center; float radius; } InterSphereParam; typedef struct{ vec3 position; vec3 normal; } InterPlaneParam; typedef struct{ vec2 position; float size; } InterSquareParam; typedef struct{ vec3 position; float size; } InterAABBParam; typedef struct { vec3 center; // OBB center point vec3 axes; // Local x-, y-, and z-axes vec3 halfwidth; // Positive halfwidth extents of OBB along each axis } InterOBBParam; typedef struct{ vec2 position; vec2 direction; float distance; } InterRay2DParam; typedef struct{ vec3 position; vec3 direction; float distance; } InterRay3DParam; typedef struct{ vec2 p1; vec2 p2; vec2 p3; } InterTriangleParam; typedef struct{ vec2 simplex[3]; uint32_t num_verts; void *obj1; void *obj2; vec2 (*support1)(void *, vec2); vec2 (*support2)(void *, vec2); } GJKObject; typedef enum{ NoIntersection, FoundIntersection, StillEvolving }EvolveResult; #ifdef __cplusplus } #endif #endif // STD_INTERSECT_H