/* This code supposes the availability of a maths library with basic support for 3D and 4D vectors and 4x4 matrices: // 3D vector class Vec3f { public: float x, y, z; // Initialize x, y & z from the corresponding elements of FMOD_VECTOR Vec3f(const FMOD_VECTOR &v); }; // ...