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

iMeshFederation::translatePositionToSourceTile()

Description

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

Syntax

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

Parameters

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().

Requirements

The iMesh object passed in for federationTile must be a mesh which was created for this federation with a tile mesh creation method based on construction from source tiles (iMeshFederation::buildTileMeshFromLocalGroundTiles() or iMeshFederation::buildTileMeshFromLocalGroundTiles_IGround()).

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.04 - Copyright © 2002-2024 PathEnginenext: Interface iSourceTiling