Hi,

I agree on not using class for this sort of thing (since it's basically a math unit).

That said.

Quote Originally Posted by savage
In the case of returning a new instance of a class, what would be a better way of implementing this? Should it just change the current vector, thus leaving it up to the developer using the class to handle storing/restoring the vector as needed?
How about doing the math on the current class and instead introducing a clone method.
Eg.

OriginalVector.Add( AVector );

would perfom transformation to the original and

TransformedVector := OriginalVector.Clone.Add( AVector );

Would return a newly created vector.

Cheers,
Balaras