Le 31/07/2024 à 10:19, Javier Jimenez Shaw via gdal-dev a écrit :
Hi

I am working in an algorithm that uses a lot of pixel positions both as int and double, offset of pixels, etc. 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. 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.

We have OGRRawPoint in ogr_geometry.h for x,y double.

--
http://www.spatialys.com
My software is free, but my time generally not.
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev
  • [gdal-dev] pixel class Javier Jimenez Shaw via gdal-dev
    • Re: [gdal-dev] pixel class Even Rouault via gdal-dev

Reply via email to