cub3d/src/math/vec2_to_int.c
2025-05-14 16:14:27 +02:00

23 lines
1.0 KiB
C

/* ************************************************************************** */
/* */
/* :::::::: */
/* vec2_to_int.c :+: :+: */
/* +:+ */
/* By: whaffman <whaffman@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2025/05/12 11:02:49 by whaffman #+# #+# */
/* Updated: 2025/05/14 16:13:14 by whaffman ######## odam.nl */
/* */
/* ************************************************************************** */
#include "cub3d.h"
t_vec2_int vec2_to_int(t_vec2 vec)
{
t_vec2_int result;
result.x = (int)vec.x;
result.y = (int)vec.y;
return (result);
}