25 lines
1.0 KiB
C
25 lines
1.0 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* :::::::: */
|
|
/* mul.c :+: :+: */
|
|
/* +:+ */
|
|
/* By: qmennen <qmennen@student.codam.nl> +#+ */
|
|
/* +#+ */
|
|
/* Created: 2025/04/25 09:56:39 by whaffman #+# #+# */
|
|
/* Updated: 2025/05/14 16:13:36 by whaffman ######## odam.nl */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "cub3d.h"
|
|
#include "math.h"
|
|
#include "vec_math.h"
|
|
|
|
t_vec2 mul(t_vec2 a, double b)
|
|
{
|
|
t_vec2 result;
|
|
|
|
result.x = a.x * b;
|
|
result.y = a.y * b;
|
|
return (result);
|
|
}
|