In an existing project, I see a Vector_3d template, templated, with the usual operations for vectors (in the sense of algebra). After profiling, I noticed that most of the time is spent in this class.
I was wondering if there was a well-known implementation of such a basic concept as a 3d vector in C ++. Indeed, it would be easier to use a good implementation of the vector instead of trying to optimize this one.
Edit: This is in the context of the geometric representation of some objects. But it does not depend on any visualization. I will see if there is a way to avoid using too many methods frequently. And I will look at the packages offered.
Barth source
share