31 lines
460 B
C
31 lines
460 B
C
#ifndef ARC_MATH_POINT_H_
|
|
#define ARC_MATH_POINT_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct ARC_Point {
|
|
int32_t x;
|
|
int32_t y;
|
|
} ARC_Point;
|
|
|
|
typedef struct ARC_UPoint {
|
|
uint32_t x;
|
|
uint32_t y;
|
|
} ARC_UPoint;
|
|
|
|
typedef struct ARC_FPoint {
|
|
float x;
|
|
float y;
|
|
} ARC_FPoint;
|
|
|
|
ARC_FPoint ARC_FPoint_Lerp(ARC_FPoint *start, ARC_FPoint *end, float t);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // ARC_MATH_POINT_H_
|