Improved the distance_function object by turning it into a properly encapsulated class
rather than just a simple struct. I also added overloaded +, -, *, and / operators for this object so you can do the kind of arithmetic you would expect on an object which represents a point in a vector space. This breaks backwards compatibility with the previous interface though as the member variables are now private. --HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404124
Showing
Please
register
or
sign in
to comment