Vector3::angleBetween should be const

Minor issues with the Ogre API that can be trivial to fix
User avatar
Jabberwocky
OGRE Moderator
OGRE Moderator
Posts: 2819
Joined: Mon Mar 05, 2007 11:17 pm
Location: Canada
x 218

Vector3::angleBetween should be const

Post by Jabberwocky »

in ogrevector3.h:

change

Code: Select all

		inline Radian angleBetween(const Vector3& dest)
to

Code: Select all

		inline Radian angleBetween(const Vector3& dest) const
A very minor gripe, but it's slightly annoying that if you have a const Vector3&, you can't call angleBetween on it.
Image