Archived
1
0

🏗️」 wip(ft_passagepietion): passage pieton working 👍

This commit is contained in:
Maelys
2024-11-01 16:34:54 +01:00
parent 90c84c7b37
commit 0d54c93764
7 changed files with 29 additions and 24 deletions

View File

@ -6,14 +6,13 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/26 15:47:29 by adjoly #+# #+# */
/* Updated: 2024/10/28 15:20:24 by adjoly ### ########.fr */
/* Updated: 2024/11/01 16:07:33 by madumerg ### ########.fr */
/* */
/* ************************************************************************** */
#include "game/vectwo.h"
#include <math.h>
float vec2_dist(t_vec2 first, t_vec2 second)
{
return (sqrt(powf(second.x - first.x, 2) + powf(second.y - first.y, 2)));