PathEngine home previous: iMeshFederation::translatePositionFromSourceTile()next: Interface iSourceTiling
Contents, API Reference, Interfaces, iMeshFederation, translatePositionToSourceTile



Translates a position in a federation tile mesh back to the source tiling used to construct the federation.


cPosition translatePositionToSourceTile(const cPosition& fromPosition, const iMesh& federationTile, const iMesh& sourceTile) const;


fromPosition The position to be translated.
This must be a valid position on the mesh passed in for federationTile.
federationTile The federation tile to translate the position from.
sourceTile The source tile to translate the position to.
This tile must be the correct source tile for the position, based on the position x and y coordinates, as can be determined with iMeshFederation::getSourceTileForPosition().


The iMesh object passed in for federationTile must be a mesh which was created for this federation, with the iMeshFederation::buildTileMeshFromLocalGroundTiles() tile mesh creation method.

Return Value

A position equivalent to fromPosition, but on the source tile.

C# Mapping

PathEngine.Position translatePositionToSourceTile(PathEngine.Position fromPosition, Mesh federationTile, Mesh sourceTile);

Documentation for PathEngine release 6.03 - Copyright © 2002-2021 PathEnginenext: Interface iSourceTiling