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

25 lines
1.0 KiB
C

/* ************************************************************************** */
/* */
/* :::::::: */
/* sub.c :+: :+: */
/* +:+ */
/* By: whaffman <whaffman@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2025/04/25 09:57:55 by whaffman #+# #+# */
/* Updated: 2025/05/14 16:13:20 by whaffman ######## odam.nl */
/* */
/* ************************************************************************** */
#include "cub3d.h"
#include "math.h"
#include "vec_math.h"
t_vec2 sub(t_vec2 a, t_vec2 b)
{
t_vec2 result;
result.x = a.x - b.x;
result.y = a.y - b.y;
return (result);
}