SimApi Convertor globalUTMToLocal

From SIMboxWiki
Jump to navigation Jump to search



Icon attributes.pngstatic bool SimApi::Convertor::globalUTMToLocal(const double &utmX, const double &utmY, const double &utmZ, float &localX, float &localY, float &localZ)

    Description

    Converts global coordinates (given in UTM format) to local simulation coordinates.

    Parameters

    utmX - The X coordinate of UTM format
    utmY - The Y coordinate of UTM format
    utmZ - The Z coordinate of UTM format
    localX - The X coordinate of world local coordinates system
    localY - The Y coordinate of world local coordinates system
    localZ - The Z coordinate of world local coordinates system

    Return

    Type: bool   Description: True if conversion succeeded, False otherwise. The local coordinates returned in localX,localY,localZ parameters.

    Remarks
    

Simulation uses SIMBox (local) coordinate system called 'World Local' for position representation. When using SIMBox simulation API, you must convert UTM coordinates to 'WorldLocal' coordinates that are used by SIMBox simulation API. See "SIMBox Coordinates Systems" for more information.


    Code Sample
    


    See Also

     localToGlobalUTM

    Related Links

     SIMbox Coordinates Systems Overview