Page 1 of 1

atan2 in cpVect

Posted: Sat Sep 15, 2007 9:55 am
by nutpor
In cpVect.cpp :

Code: Select all

__inline cpFloat
cpvtoangle(const cpVect v)
{
	return atan2(v.x v.y);
}
There should be :

Code: Select all

	return atan2(v.y, v.x);
Thanks for great physics engine! :D

Re: atan2 in cpVect

Posted: Mon Sep 17, 2007 10:21 am
by slembcke
Whoops :oops: I always had plans for using that function, but then never did. Never got tested.