<div dir="ltr"><div>I want to mutate one axis of the points in a POINTARRAY in the most efficient way.</div><div><br></div><div>Something similar to ptarray_longitude_shift, see:</div><div><a href="https://github.com/postgis/postgis/blob/svn-trunk/liblwgeom/ptarray.c#L1393">https://github.com/postgis/postgis/blob/svn-trunk/liblwgeom/ptarray.c#L1393</a><br></div><div><br></div><div>I see memcpy being used there and other places and afaik it has something to do with fears of struct misalignment.</div><div><br></div><div>Does this mean I should most definitely not do this? :)</div><div><br></div><div><div>POINT2D *p = (POINT2D *) getPoint_internal(pa, 0);</div><div>p->y = extent - p->y;</div></div><div><br></div><div>Regards,</div><div>Björn<br></div></div>