Skip to content

File syn_transform.h

File List > src > syntropic > util > syn_transform.h

Go to the documentation of this file

#ifndef SYN_TRANSFORM_H
#define SYN_TRANSFORM_H

#include "../common/syn_defs.h"
#include "syn_qmath.h"

#ifdef __cplusplus
extern "C" {
#endif

void syn_cart2pol(q16_t x, q16_t y, q16_t *r, q16_t *theta);

void syn_pol2cart(q16_t r, q16_t theta, q16_t *x, q16_t *y);

void syn_cart2sph(q16_t x, q16_t y, q16_t z, q16_t *r, q16_t *theta, q16_t *phi);

void syn_sph2cart(q16_t r, q16_t theta, q16_t phi, q16_t *x, q16_t *y, q16_t *z);

#ifdef __cplusplus
}
#endif

#endif /* SYN_TRANSFORM_H */