Functions
vnl_cross.h File Reference

Implements cross product for vectors. More...

#include <vnl/vnl_vector.h>
#include <vnl/vnl_vector_fixed.h>
#include <cassert>
#include "vnl/vnl_export.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. More...
 
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. More...
 
template<class T >
vnl_cross_2d (vnl_vector_fixed< T, 2 > const &v1, vnl_vector< T > const &v2)
 Compute the 2-D cross product. More...
 
template<class T >
vnl_cross_2d (vnl_vector< T > const &v1, vnl_vector_fixed< T, 2 > const &v2)
 Compute the 2-D cross product. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 

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

◆ vnl_cross_2d() [1/4]

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 24 of file vnl_cross.h.

◆ vnl_cross_2d() [2/4]

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 34 of file vnl_cross.h.

◆ vnl_cross_2d() [3/4]

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 44 of file vnl_cross.h.

◆ vnl_cross_2d() [4/4]

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 55 of file vnl_cross.h.

◆ vnl_cross_3d() [1/4]

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 65 of file vnl_cross.h.

◆ vnl_cross_3d() [2/4]

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 79 of file vnl_cross.h.

◆ vnl_cross_3d() [3/4]

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 93 of file vnl_cross.h.

◆ vnl_cross_3d() [4/4]

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 103 of file vnl_cross.h.