Functions
core/vnl/vnl_cross.h File Reference

Implements cross product for vectors. More...

#include <vnl/vnl_vector.h>
#include <vnl/vnl_vector_fixed.h>
#include <vcl_cassert.h>

Go to the source code of this file.

Functions

template<class T >
vnl_cross_2d (const vnl_vector< T > &v1, const vnl_vector< T > &v2)
 Compute the 2-D cross product.
template<class T >
vnl_cross_2d (const vnl_vector_fixed< T, 2 > &v1, const vnl_vector_fixed< T, 2 > &v2)
 Compute the 2-D cross product.
template<class T >
vnl_cross_2d (vnl_vector_fixed< T, 2 > const &v1, vnl_vector< T > const &v2)
 Compute the 2-D cross product.
template<class T >
vnl_cross_2d (vnl_vector< T > const &v1, vnl_vector_fixed< T, 2 > const &v2)
 Compute the 2-D cross product.
template<class T >
vnl_vector< T > vnl_cross_3d (const vnl_vector< T > &v1, const vnl_vector< T > &v2)
 Compute the 3-D cross product.
template<class T >
vnl_vector_fixed< T, 3 > vnl_cross_3d (const vnl_vector_fixed< T, 3 > &v1, const vnl_vector_fixed< T, 3 > &v2)
 Compute the 3-D cross product.
template<class T , unsigned int n>
vnl_vector_fixed< T, n > vnl_cross_3d (const vnl_vector_fixed< T, n > &a, const vnl_vector< T > &b)
 Compute the 3-D cross product.
template<class T , unsigned int n>
vnl_vector_fixed< T, n > vnl_cross_3d (const vnl_vector< T > &a, const vnl_vector_fixed< T, n > &b)
 Compute the 3-D cross product.

Detailed Description

Implements cross product for vectors.

Author:
Amitha Perera
    Modifications
     Oct.2002 - Amitha Perera - moved from vnl_vector.h
   

Definition in file vnl_cross.h.


Function Documentation

template<class T >
T vnl_cross_2d ( const vnl_vector< T > &  v1,
const vnl_vector< T > &  v2 
) [inline]

Compute the 2-D cross product.

Definition at line 20 of file vnl_cross.h.

template<class T >
T vnl_cross_2d ( const vnl_vector_fixed< T, 2 > &  v1,
const vnl_vector_fixed< T, 2 > &  v2 
) [inline]

Compute the 2-D cross product.

Definition at line 30 of file vnl_cross.h.

template<class T >
T vnl_cross_2d ( vnl_vector_fixed< T, 2 > const &  v1,
vnl_vector< T > const &  v2 
) [inline]

Compute the 2-D cross product.

Definition at line 40 of file vnl_cross.h.

template<class T >
T vnl_cross_2d ( vnl_vector< T > const &  v1,
vnl_vector_fixed< T, 2 > const &  v2 
) [inline]

Compute the 2-D cross product.

Definition at line 51 of file vnl_cross.h.

template<class T >
vnl_vector< T > vnl_cross_3d ( const vnl_vector< T > &  v1,
const vnl_vector< T > &  v2 
) [inline]

Compute the 3-D cross product.

Definition at line 61 of file vnl_cross.h.

template<class T >
vnl_vector_fixed< T, 3 > vnl_cross_3d ( const vnl_vector_fixed< T, 3 > &  v1,
const vnl_vector_fixed< T, 3 > &  v2 
) [inline]

Compute the 3-D cross product.

Definition at line 75 of file vnl_cross.h.

template<class T , unsigned int n>
vnl_vector_fixed< T, n > vnl_cross_3d ( const vnl_vector_fixed< T, n > &  a,
const vnl_vector< T > &  b 
) [inline]

Compute the 3-D cross product.

Definition at line 89 of file vnl_cross.h.

template<class T , unsigned int n>
vnl_vector_fixed< T, n > vnl_cross_3d ( const vnl_vector< T > &  a,
const vnl_vector_fixed< T, n > &  b 
) [inline]

Compute the 3-D cross product.

Definition at line 99 of file vnl_cross.h.