<div dir="ltr"><div>Hi</div><div><br></div><div>I am working in an algorithm that uses a lot of pixel positions both as int and double, offset of pixels, etc.<br></div><div>Is there any class that avoids me to use a variable for the x and another for the y... for everything? It would make the code much simpler.</div><div>Something where I can multiply by a factor (all the components), or sum another pixel (as an offset), and so on. Of course, set and get each component.<br></div><div><br></div><div>I have used in other projects Eigen::Vector2i and Vector2d. I do not mean that we add Eigen3 as a dependency for such a minor thing, but maybe we have already something similar.</div><div><br></div><div>Also I do not want to use it in any API. Just an internal tool to make code easier to read.</div><div><br></div><div>Thanks.</div><div>Javier<br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div></div><div>.___ ._ ..._ .. . ._.  .___ .. __ . _. . __..  ... .... ._ .__</div></div></div></div></div></div>