Hi all,
Maybe you can help me with this...
in the code
float dot(const Vec3& v) const { return (x * v.x) + (y * v.y) + (z * v.z);}
What is the purpose of the keyword const? Why in the case of
Vec3 operator=(const Vec3& v) const { x = v.x; y = v.y; z = v.z; return *this;}
the second const is invalid?
Thanks!