<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">Le 31/07/2024 à 10:19, Javier Jimenez
Shaw via gdal-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CADRrdKs3CF4ZNQO0q9H8e2gotZrK5UkqmdXnqo5s4rWEvtMLHw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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>
</blockquote>
<p>We have OGRRawPoint in ogr_geometry.h for x,y double.</p>
<span style="white-space: pre-wrap">
</span>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>