vector_misc.h File Reference

#include <cml/mathlib/coord_conversion.h>

Include dependency graph for vector_misc.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  cml

Functions

template<class VecT >
vector< typename
VecT::value_type, fixed< 3 > > 
cml::cross_cardinal (size_t i, const VecT &v)
 Return the cross product of the i'th cardinal basis vector and v.
template<class VecT >
vector< typename
VecT::value_type, fixed< 3 > > 
cml::cross_cardinal (const VecT &v, size_t i)
 Return the cross product of v and the i'th cardinal basis vector.
template<class VecT_1 , class VecT_2 >
detail::DotPromote< VecT_1,
VecT_2 >::promoted_scalar 
cml::manhattan_distance (const VecT_1 &v1, const VecT_2 &v2)
template<class VecT >
vector< typename
VecT::value_type, fixed< 2 > > 
cml::perp (const VecT &v)
template<class VecT_1 , class VecT_2 >
detail::CrossPromote< VecT_1,
VecT_2 >::promoted_vector 
cml::project_to_hplane (const VecT_1 &v, const VecT_2 &n)
template<typename E , class A , class VecT >
void cml::random_unit (vector< E, A > &v, const VecT &axis, E theta)
template<typename E , class A >
void cml::random_unit (vector< E, A > &v)
 Random unit 3D or 2D vector.
template<class VecT_1 , class VecT_2 , typename Real >
vector< typename
et::ScalarPromote< typename
VecT_1::value_type, typename
VecT_2::value_type >::type,
fixed< 3 >> 
cml::rotate_vector (const VecT_1 &v, const VecT_2 &n, Real angle)
 Rotate a 3D vector v about a unit-length vector n.
template<class VecT , typename Real >
vector< typename
VecT::value_type, fixed< 2 > > 
cml::rotate_vector_2D (const VecT &v, Real angle)
 Rotate a 2D vector v about a unit-length vector n.
template<class LeftT , class RightT >
detail::CrossPromote< LeftT,
RightT >::promoted_vector 
cml::unit_cross (const LeftT &left, const RightT &right)
 Return normalized cross product of two vectors.


Detailed Description

Definition in file vector_misc.h.


Generated on Sat Jul 18 19:35:36 2009 for CML 1.0 by  doxygen 1.5.9