|
template<typename ValueType , typename WeightType > |
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::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::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 > |
detail::FloatingPointReturnType< T >::Type | vtkm::MagnitudeSquared (const T &x) |
| Returns the square of the magnitude of a vector. More...
|
|
template<typename T > |
detail::FloatingPointReturnType< T >::Type | vtkm::Magnitude (const T &x) |
| Returns the magnitude of a vector. More...
|
|
template<typename T > |
detail::FloatingPointReturnType< T >::Type | vtkm::RMagnitude (const T &x) |
| Returns the reciprocal magnitude of a vector. More...
|
|
template<typename T > |
T | vtkm::Normal (const T &x) |
| Returns a normalized version of the given vector. More...
|
|
template<typename T > |
void | vtkm::Normalize (T &x) |
| Changes a vector to be normal. More...
|
|
template<typename T > |
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::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::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> |
T | vtkm::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> |
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)) |
| Convert a set of vectors to an orthonormal basis. More...
|
|