diff --git a/src/math/point.c b/src/math/point.c new file mode 100644 index 0000000..7e1767c --- /dev/null +++ b/src/math/point.c @@ -0,0 +1,8 @@ +#include "arc/math/point.h" + +ARC_FPoint ARC_FPoint_Lerp(ARC_FPoint *start, ARC_FPoint *end, float t){ + return (ARC_FPoint){ + (1.0f - t) * start->x + t * end->x, + (1.0f - t) * start->y + t * end->y + }; +} \ No newline at end of file