NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
quaternion.h
Go to the documentation of this file.
1 #pragma once
2 
3 typedef struct quaternion {
4  float w, x, y, z;
5 } quat_t;
6 
7 quat_t quat_scale(const quat_t *q, float scale);
8 quat_t quat_add(const quat_t *a, const quat_t *b);
9 quat_t quat_mul(const quat_t *a, const quat_t *b);
10 quat_t quat_normalize(const quat_t *q);
11 quat_t quat_inv(const quat_t *q);
quat_t quat_inv(const quat_t *q)
Definition: quaternion.c:32
quat_t quat_add(const quat_t *a, const quat_t *b)
Definition: quaternion.c:9
Definition: quaternion.h:3
quat_t quat_normalize(const quat_t *q)
Definition: quaternion.c:13
quat_t quat_scale(const quat_t *q, float scale)
Definition: quaternion.c:5
float y
Definition: quaternion.h:4
struct quaternion quat_t
quat_t quat_mul(const quat_t *a, const quat_t *b)
Definition: quaternion.c:23
int16_t scale
Definition: mixer.h:14
float z
Definition: quaternion.h:4
float x
Definition: quaternion.h:4
float w
Definition: quaternion.h:4