VTK-m  2.0
Namespaces | Functions
VectorAnalysis.h File Reference
#include <vtkm/Math.h>
#include <vtkm/TypeTraits.h>
#include <vtkm/Types.h>
#include <vtkm/VecTraits.h>

Go to the source code of this file.

Namespaces

 vtkm
 Groups connected points that have the same field value.
 

Functions

template<typename ValueType , typename WeightType >
VTKM_EXEC_CONT ValueType vtkm::Lerp (const ValueType &value0, const ValueType &value1, const WeightType &weight)
 Returns the linear interpolation of two values based on weight. More...
 
template<typename ValueType , vtkm::IdComponent N, typename WeightType >
VTKM_EXEC_CONT vtkm::Vec< ValueType, N > vtkm::Lerp (const vtkm::Vec< ValueType, N > &value0, const vtkm::Vec< ValueType, N > &value1, const WeightType &weight)
 
template<typename ValueType , vtkm::IdComponent N>
VTKM_EXEC_CONT vtkm::Vec< ValueType, N > vtkm::Lerp (const vtkm::Vec< ValueType, N > &value0, const vtkm::Vec< ValueType, N > &value1, const vtkm::Vec< ValueType, N > &weight)
 
template<typename T >
VTKM_EXEC_CONT detail::FloatingPointReturnType< T >::Type vtkm::MagnitudeSquared (const T &x)
 Returns the square of the magnitude of a vector. More...
 
template<typename T >
VTKM_EXEC_CONT detail::FloatingPointReturnType< T >::Type vtkm::Magnitude (const T &x)
 Returns the magnitude of a vector. More...
 
template<typename T >
VTKM_EXEC_CONT detail::FloatingPointReturnType< T >::Type vtkm::RMagnitude (const T &x)
 Returns the reciprocal magnitude of a vector. More...
 
template<typename T >
VTKM_EXEC_CONTvtkm::Normal (const T &x)
 Returns a normalized version of the given vector. More...
 
template<typename T >
VTKM_EXEC_CONT void vtkm::Normalize (T &x)
 Changes a vector to be normal. More...
 
template<typename T >
VTKM_EXEC_CONT vtkm::Vec< typename detail::FloatingPointReturnType< T >::Type, 3 > vtkm::Cross (const vtkm::Vec< T, 3 > &x, const vtkm::Vec< T, 3 > &y)
 Find the cross product of two vectors. More...
 
template<typename T >
VTKM_EXEC_CONT vtkm::Vec< typename detail::FloatingPointReturnType< T >::Type, 3 > vtkm::TriangleNormal (const vtkm::Vec< T, 3 > &a, const vtkm::Vec< T, 3 > &b, const vtkm::Vec< T, 3 > &c)
 Find the normal of a triangle. More...
 
template<typename T , int N>
VTKM_EXEC_CONT vtkm::Vec< T, N > vtkm::Project (const vtkm::Vec< T, N > &v, const vtkm::Vec< T, N > &u)
 Project a vector onto another vector. More...
 
template<typename T , int N>
VTKM_EXEC_CONTvtkm::ProjectedDistance (const vtkm::Vec< T, N > &v, const vtkm::Vec< T, N > &u)
 Project a vector onto another vector, returning only the projected distance. More...
 
template<typename T , int N>
VTKM_EXEC_CONT int vtkm::Orthonormalize (const vtkm::Vec< vtkm::Vec< T, N >, N > &inputs, vtkm::Vec< vtkm::Vec< T, N >, N > &outputs, T tol=static_cast< T >(1e-6))
 Perform Gram-Schmidt orthonormalization for 3-D vectors. More...