Talk:LlGetRegionCorner

From Second Life Wiki
Jump to navigation Jump to search

... and round it up to the nearest integer.

The text (currently) says:

Divide the returned value by 256 to get the region offset.

Note that the returned value is a vector, which in turn has three float components (i.e., real numbers with decimal/fractional part). As the example on the page correctly shows, you need just to extract the integer (non-fractional) part of the value of each coordinate (Z is supposed to be always zero), and you can use llRound for that.

Gwyneth Llewelyn (talk) 14:36, 24 January 2024 (PST)