Zephyr Scientific Library (zscilib)
Files | Data Structures | Functions
Euler Angles

Functions and structs for dealing with Euler (specifically, Cardanian) angles. More...

Files

file  euler.h
 API header file for euler angles in zscilib.
 

Data Structures

struct  zsl_euler
 An ordered triplet of real numbers describing the orientation of a rigid body in three-dimensional (Euclidean) space, with respect to a fixed coordinate system. Each element represents the rotation about the specified axis, expressed in radians. More...
 

Functions

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, allowing for vector functions to be used on the zsl_euler XYZ values. More...
 
int zsl_eul_print (struct zsl_euler *e)
 Print the supplied euler angles vector using printf in a human-readable manner. More...
 

Detailed Description

Functions and structs for dealing with Euler (specifically, Cardanian) angles.

Function Documentation

◆ zsl_eul_print()

int zsl_eul_print ( struct zsl_euler e)

Print the supplied euler angles vector using printf in a human-readable manner.

Parameters
ePointer to the vector containing the euler angles to print.
Returns
0 if everything executed correctly, otherwise an appropriate error code.

◆ 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, allowing for vector functions to be used on the zsl_euler XYZ values.

Parameters
ePointer to the zsl_euler struct to use.
vPointer to the zsl_vec struct to use.
Returns
0 if everything executed correctly, otherwise a negative error code.