News for hackers. Stuff that matters.
Re:Tired of Stack Overflow by Const-me on Tuesday September 03, 2019 @09:26AM (#20866251)
It doesn’t matter to the downvoters. Here’s a deleted question closed as “too broad”: https://stackoverflow.com/questions/57064879 Copy-pasting below.

What is the best way in C++ to calculate the coordinate of a rectangle (hyper-rectangle) in n-dimension? I have dimensions of the rectangle in a 1d vector like {1d_min , 1d_max ,2d_min,2d_max, ...., nd_min,nd_max}. For example, in 2d the dimensions are {1d_min,1d_max ,2d_min,2d_max}. And the coordinates will be {1d_min,2d_min},{1d_min,2d_max},{1d_max,2d_min},{1d_max,2d_max}. However, I want it for n-dimension.

For people with even minimal background in geometry, it’s obvious the OP wants coordinates of all vertices of an axis aligned hyper-rectangle. A good question in my book, and it has very simple and elegant answer which I wrote there (using bits from an integer vertex index to select min or max coordinates).

Re:Tired of Stack Overflow by andrewprock on Tuesday September 03, 2019 @05:22PM (#20871316)
And to prove your point, the question has now been removed.