Hello!
I am writing 3D application and i will need vectors. Now i have:
struct stVector
{
float x;
float y;
float z;
}
but i want do do classes like
class cVector
{
public:
float x;
float y;
float z;
cVector();
~cVector();
void Normalize(void);
};
Now if i declarate vector i for example write "float Pos=Vector.x" it will be faster for structure/class or maybe it will be exacly the same performance? Thank you for your answers.
[edited by - Mauzoleum on January 18, 2003 9:18:31 PM]
[edited by - Mauzoleum on January 18, 2003 9:19:50 PM]