Sign in to follow this  
clashie

namespace question

Recommended Posts

Say this is math.h
namespace bnr
{
	namespace math
	{
		inline float degToRad(float x) {	return x * 0.017453292f;	}
		...
	}
}
But here is another class header...
#include "math.h"
namespace bnr
{
	namespace math
	{
		class Matrix
		{
		public:
			void rotateX(Matrix* out, float a)
			{
				Matrix temp, m;
				float r = bnr::math::degToRad(a); //indentifier not found, what
				...
			}
		}
	}
}
Why am I getting identifier not found on that function? What am I missing here?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this