Quick question.
I am currently passing translations to my scene objects in two ways:
CVector3 vTranslation(150.0f, 0.0f, 150.0f);
m_pSceneObject->SetTranslation(0.0f, 150.0f, 0.0f);
m_pSceneObject->SetTranslation(vTranslation);
Say I wanted to do away with the first function, and pass my arguments like this:
CVector3 vTranslation(150.0f, 0.0f, 150.0f);
m_pSceneObject->SetTranslation(CVector3(0.0f, 150.0f, 0.0f));
m_pSceneObject->SetTranslation(vTranslation);
Do I incur any performance overhead for temporarily creating a CVector3 out of the three floats? Obviously, there will be some, but should I be concerned?