Mathter icon indicating copy to clipboard operation
Mathter copied to clipboard

problem trying to normalize a quaternion

Open RallyTronics opened this issue 3 years ago • 0 comments

The function Normalize on line 71 of QuaternionFunction.h calls a vector function Normalized

/// <summary> Returns the unit quaternion of the same direction. Does not change this object. </summary>
template <class T, bool Packed>
Quaternion<T, Packed> Normalize(const Quaternion<T, Packed>& q) {
	return Quaternion<T, Packed>{ q.vec.Normalized() };
}

I get a compiler error error C2039: 'Normalized': is not a member of 'mathter::Vector<float,4,false>' Manually searching through the code, I can't to seem to find that function.

RallyTronics avatar Jul 08 '22 18:07 RallyTronics