text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_vec3_normalize.c                                :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: jblack-b <jblack-b@student.42.fr>          +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2019/06/03 15:32:37 by jblack-b          #+#    #+#             */
  /*   Updated: 2021/01/06 18:44:13 by jblack-b         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libmath.h"
  
  t_vec3	ft_vec3_normalize(t_vec3 vect)
  {
  	float norm;
  
  	norm = ft_vec3_norm(vect);
  	vect.x = vect.x / norm;
  	vect.y = vect.y / norm;
  	vect.z = vect.z / norm;
  	return (vect);
  }
  