Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 610566
Collapse All | Expand All

(-)common/m_vectors.cpp (-5 / +5 lines)
Lines 541-556 Link Here
541
{
541
{
542
	// find the smallest component of the vector src
542
	// find the smallest component of the vector src
543
	v3double_t tempvec;
543
	v3double_t tempvec;
544
	double minelem = src->x;
544
	double minelem = fabs(src->x);
545
	double *mincomponent = &(tempvec.x);
545
	double *mincomponent = &(tempvec.x);
546
	if (abs(src->y) < minelem)
546
	if (fabs(src->y) < minelem)
547
	{
547
	{
548
		minelem = abs(src->y);
548
		minelem = fabs(src->y);
549
		mincomponent = &(tempvec.y);
549
		mincomponent = &(tempvec.y);
550
	}
550
	}
551
	if (abs(src->z) < minelem)
551
	if (fabs(src->z) < minelem)
552
	{
552
	{
553
		minelem = abs(src->z);
553
		minelem = fabs(src->z);
554
		mincomponent = &(tempvec.z);
554
		mincomponent = &(tempvec.z);
555
	}
555
	}
556
	
556
	

Return to bug 610566