forked from gm-infinite/miniRT
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvector.h
More file actions
32 lines (26 loc) · 1.36 KB
/
Copy pathvector.h
File metadata and controls
32 lines (26 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* vector.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: kuzyilma <kuzyilma@student.42istanbul.c +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/08/09 15:15:00 by kuzyilma #+# #+# */
/* Updated: 2025/10/05 14:43:03 by kuzyilma ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef VECTOR_H
# define VECTOR_H
# include "coordinates_3d.h"
typedef t_coordinates_3d t_vector;
t_vector v3_add(t_vector v, t_vector u);
t_vector v3_sub(t_vector v1, t_vector v2);
t_vector v3_mult(double a, t_vector v);
t_vector v3_const_div(double a, t_vector v);
double v3_len(t_vector v);
t_vector v3_norm(t_vector v);
double v3_dot(t_vector v1, t_vector v2);
t_vector v3_cross(t_vector v1, t_vector v2);
t_vector vector(double x, double y, double z);
t_vector v3_neg(t_vector v);
#endif