25 lines
1.0 KiB
C
25 lines
1.0 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* :::::::: */
|
|
/* perp.c :+: :+: */
|
|
/* +:+ */
|
|
/* By: whaffman <whaffman@student.codam.nl> +#+ */
|
|
/* +#+ */
|
|
/* Created: 2025/04/25 10:34:39 by whaffman #+# #+# */
|
|
/* Updated: 2025/05/14 16:13:27 by whaffman ######## odam.nl */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "cub3d.h"
|
|
#include "math.h"
|
|
#include "vec_math.h"
|
|
|
|
t_vec2 perp(t_vec2 a)
|
|
{
|
|
t_vec2 result;
|
|
|
|
result.x = -a.y;
|
|
result.y = a.x;
|
|
return (result);
|
|
}
|