Loading...
Searching...
No Matches
point.c
Go to the documentation of this file.
#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
};
}
ARC_FPoint_Lerp
ARC_FPoint ARC_FPoint_Lerp(ARC_FPoint *start, ARC_FPoint *end, float t)
Definition point.c:3
point.h
ARC_FPoint
Definition point.h:20
ARC_FPoint::x
float x
Definition point.h:21
ARC_FPoint::y
float y
Definition point.h:22