PathEngine home previous: iMeshFederation::getRepresentedRegion_World()next: iMeshFederation::save()
Contents, API Reference, Interfaces, iMeshFederation, getTileCentre

iMeshFederation::getTileCentre()

Description

Queries the tile centre, or origin, for a specified tile in this federation.

Syntax

void getTileCentre(tSigned32 tileIndex, tSigned32& centreX, tSigned32& centreY) const;

Parameters

tileIndexThe index of the tile within this federation to query.
centreX The X coordinate of the tile origin.
centreY The Y coordinate of the tile origin.

Remarks

The geometry for each federation tile mesh is centred on this tile origin, so this origin must be subtracted from 'federation world coordinates' in order to obtain a position on the tile, and added to tile coordinates when converting back to world coordinates.


Documentation for PathEngine release 5.18 - Copyright © 2002-2008 PathEnginenext: iMeshFederation::save()