Original Post
Say I have
class A
{
calc_dist(const v &cam) { float dist = length( mypos - cam ); };
};
class B
{
float dist;
calc_dist(const v &cam) { dist = length( mypos - cam ); };
};
class C
{
calc_dist(const v &cam) { static float = length( mypos - cam ); };
};
and they are called frequently, am I right in assuming B and C tie as far as performance is concerned whereas A sucks?