-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutil.c
More file actions
31 lines (27 loc) · 1.2 KB
/
Copy pathutil.c
File metadata and controls
31 lines (27 loc) · 1.2 KB
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
28
29
30
31
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* util.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: kaan <kaan@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/06 12:23:24 by kaan #+# #+# */
/* Updated: 2024/08/26 15:13:14 by kaan ### ########.fr */
/* */
/* ************************************************************************** */
#include "minirt.h"
double degrees_to_radians(double degrees)
{
double radian;
radian = degrees * M_PI / 180.0;
return (radian);
}
void free_mem(t_mlx_context *ctx)
{
if (ctx->world->point_lights)
free(ctx->world->point_lights);
if (ctx->world->objects)
free(ctx->world->objects);
if (ctx->sum.data)
free(ctx->sum.data);
}