Good for you! Another approach would be a function (not class member method) double distanceBetween(const threeD& ptA, const threeD& ptB), which could be used anywhere.It may be more reasonable for general algorithms as well. In any case, this is just a suggestion. Your approach is perfectly reasonable.
rubberman
Posting Maven
2,569 posts since Mar 2010
Reputation Points: 365
Solved Threads: 305
Skill Endorsements: 51