Esempio n. 1
0
/**
* @brief @b NOT @b Documented at this time
******************************************************************************/
void Quat :: setRotAxisAngleNormalized( const Vect &axis, const float angle )
{
	const float angle_a = 0.5f * angle;
	float cos_a;
	float sin_a;

	MATHASSERT( axis.isUnit(MATH_TOLERANCE) );
	
	cos_a = Trig :: Cos(angle_a);
	sin_a = Trig :: Sin(angle_a);

	
	this->set(axis * sin_a, cos_a);

	//this->Vect::operator = (axis * sin_a);
	//this->v.w = cos_a;


}