Heya there, I'm currently working on a header file which does some basic vector maths. I was wondering if it is possible to convert an instance of a custom class to one of the fundamental types, like double, in my case.
Basically, what I want to do is overload the type cast operator, so that it accepts my CVector and returns a double which represents the length of the vector.