Astrolabe/API TranslateWorldMapPosition

From Esamynn's Wiki

Jump to: navigation, search

Astrolabe ยป Astrolabe/API TranslateWorldMapPosition

Calculates world map coordinates from one zone into another.

xPos, yPos = Astrolabe:TranslateWorldMapPosition( C, Z, xPos, yPos, nC, nZ )

Arguments

C, Z, xPos, yPos
World Map Point - point to be translated
nC, nZ
Zone Index - zone whose coordinate system the provided point will be translated into

Returns

xPos
Number - the x coordinate in the new zone's coordinate system
yPos
Number - the y coordinate in the new zone's coordinate system

Details

This function returns nil for all arguments if trying to a point from one zone to a second zone is meaningless. (IE. the point is on Azeroth and the other zone is in Outland)

Personal tools