fuckin hell
[carveJwlIkooP6JGAAIwe30JlM.git] / camera.h
index dbacc26afd7d89f47308781caeef7767ae0f03e4..77fc0893f4e885e6766e001617b23b2bab33bcb6 100644 (file)
--- 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 );