working on ARC_FPoint_Lerp

This commit is contained in:
herbglitch 2023-09-14 01:34:29 -06:00
parent f431d45af5
commit 1ed3cc3946

8
src/math/point.c Normal file
View file

@ -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
};
}