Zephyr Scientific Library (zscilib)
include
zsl
orientation
euler.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2019-2021 Kevin Townsend
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
23
#ifndef ZEPHYR_INCLUDE_ZSL_EULER_H_
24
#define ZEPHYR_INCLUDE_ZSL_EULER_H_
25
26
#include <
zsl/zsl.h
>
27
#include <
zsl/vectors.h
>
28
#include <
zsl/matrices.h
>
29
30
#ifdef __cplusplus
31
extern
"C"
{
32
#endif
33
43
struct
zsl_euler
{
44
union
{
45
struct
{
46
zsl_real_t
x
;
47
zsl_real_t
y
;
48
zsl_real_t
z
;
49
};
51
zsl_real_t
idx
[3];
52
};
53
};
54
65
int
zsl_eul_to_vec
(
struct
zsl_euler
*e,
struct
zsl_vec
*v);
66
76
int
zsl_eul_print
(
struct
zsl_euler
*e);
77
78
#ifdef __cplusplus
79
}
80
#endif
81
82
#endif
/* ZEPHYR_INCLUDE_ZSL_EULER_H_ */
83
/* End of euler group */
zsl_euler::z
zsl_real_t z
Z axis, in radians.
Definition:
euler.h:48
zsl_euler::x
zsl_real_t x
X axis, in radians.
Definition:
euler.h:46
zsl_euler::idx
zsl_real_t idx[3]
Array-based access.
Definition:
euler.h:51
zsl_euler
An ordered triplet of real numbers describing the orientation of a rigid body in three-dimensional (E...
Definition:
euler.h:43
zsl_euler::y
zsl_real_t y
Y axis, in radians.
Definition:
euler.h:47
vectors.h
API header file for vectors in zscilib.
zsl_eul_print
int zsl_eul_print(struct zsl_euler *e)
Print the supplied euler angles vector using printf in a human-readable manner.
matrices.h
API header file for matrices in zscilib.
zsl.h
API header file for zscilib.
zsl_eul_to_vec
int zsl_eul_to_vec(struct zsl_euler *e, struct zsl_vec *v)
Takes the values in the supplied zsl_euler, and assigns the same memory address to a zsl_vec,...
zsl_vec
Represents a vector.
Definition:
vectors.h:40
zsl_real_t
double zsl_real_t
Definition:
zsl.h:51
Generated by
1.8.17