aboutsummaryrefslogtreecommitdiff
path: root/vendor/libftm/src/vec4/ftm_vec4sub.c
blob: 8082ddd62f70f3e955ae1c10a515d74a43b5d167 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   ftm_vec4sub.c                                      :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: charles <charles.cabergs@gmail.com>        +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2020/05/09 20:57:43 by charles           #+#    #+#             */
/*   Updated: 2020/05/09 21:15:13 by charles          ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

#include "libftm_vec4.h"

t_ftmvec4	*ftm_vec4sub(t_ftmvec4 *dst, t_ftmvec4 *other)
{
	dst->v[0] -= other->v[0];
	dst->v[1] -= other->v[1];
	dst->v[2] -= other->v[2];
	dst->v[3] -= other->v[3];
	return (dst);
}