library of assembled shared sources |
http://lass.cocamware.com |
#include <normalizing_policy.h>
Static Public Member Functions | |
template<typename VectorType > | |
static void | normalize (VectorType &ioSubject) |
Normalize a vector iSubject. | |
template<typename VectorType , typename ValueType > | |
static void | normalizeAndScale (VectorType &ioSubject, ValueType &ioExtraValue) |
Normalize iSubject, and scale iExtraValue as well so iExtraValue / iSubject.norm() is constant. | |
template<typename ValueType , typename VectorType > | |
static ValueType | divideByNorm (ValueType iValue, const VectorType &) |
since iNormObject should be normalized by now, we can "divide by 1". | |
template<typename ValueType , typename VectorType > | |
static ValueType | divideBySquaredNorm (ValueType iValue, const VectorType &) |
since iNormObject should be normalized by now, we can "divide by 1". |
Definition at line 108 of file normalizing_policy.h.
static void lass::prim::Normalized::normalize | ( | VectorType & | ioSubject | ) | [inline, static] |
static void lass::prim::Normalized::normalizeAndScale | ( | VectorType & | ioSubject, | |
ValueType & | ioExtraValue | |||
) | [inline, static] |
Normalize iSubject, and scale iExtraValue as well so iExtraValue / iSubject.norm() is constant.
Typically used by cartesian equations.
Definition at line 123 of file normalizing_policy.h.
References LASS_ASSERT, and lass::num::norm().
static ValueType lass::prim::Normalized::divideByNorm | ( | ValueType | iValue, | |
const VectorType & | ||||
) | [inline, static] |
since iNormObject should be normalized by now, we can "divide by 1".
Definition at line 136 of file normalizing_policy.h.
static ValueType lass::prim::Normalized::divideBySquaredNorm | ( | ValueType | iValue, | |
const VectorType & | ||||
) | [inline, static] |
since iNormObject should be normalized by now, we can "divide by 1".
Definition at line 146 of file normalizing_policy.h.
Generated on Mon Nov 10 14:22:13 2008 for Library of Assembled Shared Sources by 1.5.7.1 |