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

21 lines
1018 B
C

/* ************************************************************************** */
/* */
/* :::::::: */
/* norm.c :+: :+: */
/* +:+ */
/* By: qmennen <qmennen@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2025/04/25 09:59:13 by whaffman #+# #+# */
/* Updated: 2025/05/14 16:13:32 by whaffman ######## odam.nl */
/* */
/* ************************************************************************** */
#include "cub3d.h"
#include "math.h"
#include "vec_math.h"
double norm(t_vec2 a)
{
return (sqrtf(a.x * a.x + a.y * a.y));
}