Closed lewie-donckers closed 2 years ago
Moved the distSquared() helper functions from static members to the anonymous namespace in the source file.
distSquared()
Will allow me to use them in other helper files in that namespace in the future.
Also refactored the implementation to avoid the duplicate sub-expressions and simply use a library function.
Moved the
distSquared()
helper functions from static members to the anonymous namespace in the source file.Will allow me to use them in other helper files in that namespace in the future.
Also refactored the implementation to avoid the duplicate sub-expressions and simply use a library function.