21 lines
1020 B
C
21 lines
1020 B
C
/* ************************************************************************** */
|
|
/* */
|
|
/* :::::::: */
|
|
/* dot.c :+: :+: */
|
|
/* +:+ */
|
|
/* By: qmennen <qmennen@student.codam.nl> +#+ */
|
|
/* +#+ */
|
|
/* Created: 2025/04/25 09:58:29 by whaffman #+# #+# */
|
|
/* Updated: 2025/05/07 11:50:27 by whaffman ######## odam.nl */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "cub3d.h"
|
|
#include "math.h"
|
|
#include "vec_math.h"
|
|
|
|
double dot(t_vec2 a, t_vec2 b)
|
|
{
|
|
return (a.x * b.x + a.y * b.y);
|
|
}
|