47 lines
748 B
C
47 lines
748 B
C
#ifndef ARC_MATH_OBROUND_H_
|
|
#define ARC_MATH_OBROUND_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct ARC_Obround {
|
|
int32_t x;
|
|
int32_t y;
|
|
int32_t r;
|
|
int32_t h;
|
|
} ARC_Obround;
|
|
|
|
typedef struct ARC_FObround {
|
|
float x;
|
|
float y;
|
|
float r;
|
|
float h;
|
|
} ARC_FObround;
|
|
|
|
/**
|
|
* @brief casts Obround to FObround
|
|
*
|
|
* @param obround ARC_Obround to be casted
|
|
*
|
|
* @return ARC_FObround
|
|
*/
|
|
ARC_FObround ARC_Obround_CastToFObround(ARC_Obround *obround);
|
|
|
|
/**
|
|
* @brief casts FObround to Obround
|
|
*
|
|
* @param obround ARC_FObround to be casted
|
|
*
|
|
* @return ARC_Obround
|
|
*/
|
|
ARC_Obround ARC_FObround_CastToObround(ARC_FObround *obround);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // ARC_MATH_OBROUND_H_
|
|
|