next up previous contents
Next: Other types of fixed Up: Fixed size vectors Previous: Conversion from general to   Contents

Single precision fixed size vectors

      #include <gandalf/linalg/3vectorf.h>
There is an identical set of functions for handling single precision floating point vectors, the names of which are obtained by replacing "gan_vec3_..." in the above functions with "gan_vec3f_...". For example, to add two single precision 3-vectors use
      Gan_Vector3_f v3x, v3y, v3z;

      /* ... fill v3x and v3y ... */
      gan_vec3f_add_q ( &v3x, &v3y, &v3z );