LibGame v0.4.0
The LG Game Engine - Copyright (C) 2024-2026 ETMSoftware
Loading...
Searching...
No Matches
lg_math_extra.h
1/*
2 * LibGame - Copyright (C) Emmanuel Thomas-Maurin 2011-2026
3 * All rights reserved
4 */
5
6#ifndef LG_MATH_EXTRA_H
7#define LG_MATH_EXTRA_H
8
9typedef struct {
10 vec3_t orig;
11 vec3_t dir;
12} LG_Ray;
13
14enum {RAYCAST_NO_CLICK, RAYCAST_LEFT_CLICK, RAYCAST_RIGHT_CLICK};
15
16zboolean lg_raycast_bsphere(LG_Camera *, LG_BSphere, float *, int *, zboolean);
17
18vec4_t vec4(float, float, float, float);
19
21
22float m4_det(mat4_t);
23
25
26#endif /* LG_MATH_EXTRA_H */
mat4_t m4_invert(mat4_t mat)
Definition lg_math_extra.c:176
vec4_t vec4(float x, float y, float z, float w)
Definition lg_math_extra.c:124
vec4_t m4_mul_v4(mat4_t m, vec4_t v)
Definition lg_math_extra.c:136
zboolean lg_raycast_bsphere(LG_Camera *cam, LG_BSphere bsphere, float *inters_dist, int *click_type, zboolean flush_clicks)
Definition lg_math_extra.c:34
float m4_det(mat4_t mat)
Definition lg_math_extra.c:155
Definition lg_camera.h:22
Definition lg_math_extra.h:9
Definition math_3d.h:123
Definition lg_quaternions.h:48
Definition lg_collision_detect.h:23
Definition math_3d.h:179