1 /*
2  * Copyright (c) 2021 Kevin Townsend
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #include <math.h>
8 #include <errno.h>
9 #include <stdio.h>
10 #include <zsl/zsl.h>
11 #include <zsl/vectors.h>
12 #include <zsl/orientation/euler.h>
13 
zsl_eul_to_vec(struct zsl_euler * e,struct zsl_vec * v)14 int zsl_eul_to_vec(struct zsl_euler *e, struct zsl_vec *v)
15 {
16 	int rc = 0;
17 
18 	v->sz = 3;
19 	v->data = e->idx;
20 
21 	return rc;
22 }
23 
zsl_eul_print(struct zsl_euler * e)24 int zsl_eul_print(struct zsl_euler *e)
25 {
26 	printf("(%f, %f, %f)\n\n", e->x, e->y, e->z);
27 	return 0;
28 }
29