OpenMetaverse Protocol Library Developers API Documentation
GlobalPosToRegionHandle Method (globalX, globalY, localX, localY)
NamespacesOpenMetaverseHelpersGlobalPosToRegionHandle(Single, Single, Single % , Single % )
Given an X/Y location in absolute (grid-relative) terms, a region handle is returned along with the local X/Y location in that region
Declaration Syntax
C#
public 
static 
ulong 
GlobalPosToRegionHandle(
        
float 
globalX,
        
float 
globalY,
        
out 
float 
localX,
        
out 
float 
localY
)
Parameters
globalX ( Single)
The absolute X location, a number such as 255360.35
globalY ( Single)
The absolute Y location, a number such as 255360.35
localX ( Single %)
The sim-local X position of the global X position, a value from 0.0 to 256.0
localY ( Single %)
The sim-local Y position of the global Y position, a value from 0.0 to 256.0
Return Value
A 64-bit region handle that can be used to teleport to

Assembly: OpenMetaverse(Module: OpenMetaverse.dll) Version: 0.9.3.3318 (0.9.3.3318)