-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtranslate_point.c
24 lines (21 loc) · 1.21 KB
/
translate_point.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* translate_point.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cyildiri <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/23 17:48:57 by cyildiri #+# #+# */
/* Updated: 2016/11/23 17:48:58 by cyildiri ### ########.fr */
/* */
/* ************************************************************************** */
#include "libgraphics.h"
t_vec3fc translate_point(t_vec3fc original, t_vec3fc translation)
{
t_vec3fc translated_point;
translated_point.x = original.x + translation.x;
translated_point.y = original.y + translation.y;
translated_point.z = original.z + translation.z;
translated_point.color = original.color;
return (translated_point);
}