[TriLUG] OT: C++ Question
Randy Barlow
rpbarlow at ncsu.edu
Tue Jan 31 11:19:12 EST 2006
Brian Henning wrote:
> Of course, my geometry skills are very faded at this point, but can
> you really subtract a point from a vector? I wouldn't know how to do
> that. In my ignorance of geometric operations, I'd suggest removing
> the operator-(point3d) function altogether. That's the only member of
> vector3d (such as it is now) that has a reference to point3d. If you
> really need the function, maybe make a reverse-logic member function
> of point3d such as vector3d subtractFrom(vector3d) which would
> subtract itself from a vector and return the resultant vector.
Thanks Brian, I don't know what I was thinking there! Removed that
function, and now we have compilage! Now to move on to the real
problems (intent errors...)
--
Randy Barlow
Research Assistant
Department of Electrical and Computer Engineering
North Carolina State University, Raleigh, NC
rpbarlow at ncsu.edu
http://www.electronsweatshop.com
More information about the TriLUG
mailing list