working on ARC_FPoint_Lerp
This commit is contained in:
parent
f431d45af5
commit
1ed3cc3946
1 changed files with 8 additions and 0 deletions
8
src/math/point.c
Normal file
8
src/math/point.c
Normal 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
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue