Skip to content

Instantly share code, notes, and snippets.

@markdekuijer markdekuijer/Lerp
Created Jan 22, 2019

Embed
What would you like to do?
float Lerp(float val1, float val2, float t)
{
return (1 - t) * val1 + t * val2;
}
xyz Lerp(xyz pos1, xyz pos2, float t)
{
return x=Lerp(pos1.x,pos2.x,t)
y=Lerp(pos1.y, pos2.y,t)
z=Lerp(pos1.z, pos2.z,t)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.