| Top |
| gboolean | g3d_vector_normal () |
| gboolean | g3d_vector_unify () |
| gboolean | g3d_vector_transform () |
A vector is a one-dimensional array of floating point data.
Declare it as statically as:
G3DVector vector[3];
or allocate it dynamically with:
G3DVector *vector = g3d_vector_new(3, 1);
gboolean g3d_vector_normal (G3DFloat ax,G3DFloat ay,G3DFloat az,G3DFloat bx,G3DFloat by,G3DFloat bz,G3DFloat *nx,G3DFloat *ny,G3DFloat *nz);
calculate the normal from a plane defined by two vectors
gboolean g3d_vector_unify (G3DFloat *nx,G3DFloat *ny,G3DFloat *nz);
Transforms the given vector to the unit vector.