rt/src/init_vector.c

26 lines
1.0 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* init_vector.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ntrahy <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/01/02 23:24:21 by ntrahy #+# #+# */
/* Updated: 2017/01/02 23:24:22 by ntrahy ### ########.fr */
/* */
/* ************************************************************************** */
#include "rt.h"
#include <math.h>
t_vect init_vector(double x, double y, double z, double w)
{
t_vect v;
v.x = x;
v.y = y;
v.z = z;
v.w = w;
return (v);
}