Archeus 0.0.0
A C library and game engine that focuses on documentation
Loading...
Searching...
No Matches
point.c File Reference
#include "arc/math/point.h"

Go to the source code of this file.

Functions

ARC_FPoint ARC_FPoint_Lerp (ARC_FPoint *start, ARC_FPoint *end, float t)
 

Function Documentation

◆ ARC_FPoint_Lerp()

ARC_FPoint ARC_FPoint_Lerp ( ARC_FPoint * start,
ARC_FPoint * end,
float t )

Definition at line 3 of file point.c.

3 {
4 return (ARC_FPoint){
5 (1.0f - t) * start->x + t * end->x,
6 (1.0f - t) * start->y + t * end->y
7 };
8}
float x
Definition point.h:21
float y
Definition point.h:22

References ARC_FPoint::x, and ARC_FPoint::y.