X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=camera.h;h=77fc0893f4e885e6766e001617b23b2bab33bcb6;hb=fc1d543772607ab0643e54ebd2db9ec9dce614d1;hp=dbacc26afd7d89f47308781caeef7767ae0f03e4;hpb=ff8fcac9582d07bc1ccbf08421d6ffec1758a755;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/camera.h b/camera.h index dbacc26..77fc089 100644 --- a/camera.h +++ b/camera.h @@ -27,6 +27,13 @@ struct camera } VG_STATIC main_camera; +VG_STATIC void camera_lerp_angles( v3f a, v3f b, float t, v3f d ) +{ + d[0] = vg_alerpf( a[0], b[0], t ); + d[1] = vg_lerpf( a[1], b[1], t ); + d[2] = vg_lerpf( a[2], b[2], t ); +} + VG_STATIC void camera_lerp( camera *a, camera *b, float t, camera *d ) { v3_lerp( a->pos, b->pos, t, d->pos );