vdivs.c
 1  /* ************************************************************************** */
 2  /*                                                                            */
 3  /*                                                        :::      ::::::::   */
 4  /*   vdivs.c                                            :+:      :+:    :+:   */
 5  /*                                                    +:+ +:+         +:+     */
 6  /*   By: gychoi <gychoi@student.42seoul.kr>         +#+  +:+       +#+        */
 7  /*                                                +#+#+#+#+#+   +#+           */
 8  /*   Created: 2023/05/11 20:53:11 by gychoi            #+#    #+#             */
 9  /*   Updated: 2023/05/11 20:53:29 by gychoi           ###   ########.fr       */
10  /*                                                                            */
11  /* ************************************************************************** */
12  
13  #include "libvec.h"
14  
15  t_vec3	vdivs(t_vec3 ret, double t)
16  {
17  	ret.x *= (1 / t);
18  	ret.y *= (1 / t);
19  	ret.z *= (1 / t);
20  	return (ret);
21  }