Contents, API Reference, Interfaces, iMesh, generateRandomPositionInSection
iMesh::generateRandomPositionInSection()
Description
Generates a random position in the specified section.
Syntax
cPosition generateRandomPositionInSection(int32_t sectionID) const; |
Parameters
| sectionID | |
The section within which a random position should be generated.
(Must not be -1.)
|
Return Value
This method will usually succeed, in which case a valid position in the specified section is returned.
The call may fail, in which case an explicitly invalid position will be returned (cell set to -1).
Calling code should always check for this case.
Except for in pathological circumstances, calling this method repeatedly should eventually return a valid position.
C# Mapping
PathEngine.Position generateRandomPositionInSection(int sectionID); |
Java Mapping
Position generateRandomPositionInSection(int sectionID);
|