-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathray.h
27 lines (22 loc) · 1.08 KB
/
ray.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ray.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: kemizuki <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/12/25 04:36:14 by kemizuki #+# #+# */
/* Updated: 2023/12/25 04:36:16 by kemizuki ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef RAY_H
# define RAY_H
# include "vector.h"
typedef struct s_ray
{
t_vec3 origin;
t_vec3 direction;
} t_ray;
t_ray new_ray(t_vec3 origin, t_vec3 direction);
t_vec3 ray_at(t_ray ray, double t);
#endif