PathEngine home previous: iMeshFederation::size()next: iMeshFederation::translatePosition()
Contents, API Reference, Interfaces, iMeshFederation, tileForQuery

iMeshFederation::tileForQuery()

Description

Looks up the tile in this federation to use for a given query, based on horizontal coordinates for the query 'start point'.

Syntax

tSigned32 tileForQuery(tSigned32 queryStartX, tSigned32 queryStartY) const;

Parameters

queryStartXThe x coordinate of the query start point.
queryStartYThe y coordinate of the query start point.

Return Value

The index for the tile within this federation which should be used to dispatch a query with the specified start point.

Remarks

For point collision or closest unobstructed position queries 'start point' simply indicates the single point at which the query is made.

If build correctly, the mesh at the returned tile index guarantees to represent all geometry within a fixed range centred on this point.

The coordinates passed in to this method must be inside the range covered by this federation. i.e. iMeshFederation::coordinatesAreInsideRange() must return true for these coordinates.


Documentation for PathEngine release 5.29 - Copyright © 2002-2012 PathEnginenext: iMeshFederation::translatePosition()