Makes a lot of sense. Thanks for both answers.
--B.S.
> also - the way to compare vectors in using algebra::get_distance > On Feb 23, 2011, at 9:22 AM, Daniel Russel wrote: > >> It is "expected" in a certain sense in that one should not expect it to work right as comparisons on geometric objects like that can't be implemented very reliably (due to floating point values getting truncated unexpectedly as they are moved between floating point registers and memory). Specifically, algebra::Vector3D v= v2; assert(v==v2); is not guaranteed to succeed when optimizations are turned on. >> >> That said, we should probably do something on the python side to make it clearer that it isn't supported (on the C++ side there are no comparison operators). Perhaps provide an implementation of __cmp__ that throws an exception.