void vect3_vect3_sub ( const float in1[3], const float in2[3], float out[3] )
{
int i;
for ( i = 0; i < 3; i++ )
out[i] = in1[i] - in2[i];
}
float vect3_length ( const float in[3] )
{
return sqrtf( in[0] * in[0] + in[1] * in[1] + in[2] * in[2] );
}
float vect3_dist ( const float in1[3], const float in2[3] )
{
float dist[3];
vect3_vect3_sub( in1, in2, dist );
return vect3_length( dist );
}