25 vnl_float_3
vnl_cross_3d(vnl_float_3
const& v1, vnl_float_3
const& v2)
28 result[0] = v1[1] * v2[2] - v1[2] * v2[1];
29 result[1] = v1[2] * v2[0] - v1[0] * v2[2];
30 result[2] = v1[0] * v2[1] - v1[1] * v2[0];
34 #endif // vnl_float_3_h_
vnl_T_n_impl(float, 3)
class vnl_float_3 : a vnl_vector of 3 floats.
vnl_vector< T > vnl_cross_3d(const vnl_vector< T > &v1, const vnl_vector< T > &v2)
Compute the 3-D cross product.