PathEngine home previous: iMesh::generateRandomPositionInSection()next: iMesh::generateUnobstructedSpaceFor()
Contents, API Reference, Interfaces, iMesh, generateRandomPositionLocally



Generates a random position on the region of a mesh local to the specified centre position.


cPosition generateRandomPositionLocally(const cPosition& centre, int32_t range) const;


centre Specifies the centre of the region in which to generate a random position.
range Specifies the size of the region in which to generate a random position.
Must be greater than zero.

Return Value

A valid, randomly generated position on this mesh and with x and y components within +/- range of centre.

See Also


C# Mapping

PathEngine.Position generateRandomPositionLocally(PathEngine.Position centre, int range);

Java Mapping

Position generateRandomPositionLocally(Position centre, int range);

Documentation for PathEngine release 6.03 - Copyright © 2002-2021 PathEnginenext: iMesh::generateUnobstructedSpaceFor()