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

iMesh::generateRandomPositionLocally()

Description

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

Syntax

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

Parameters

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

iMesh::generateRandomPosition()

C# Mapping

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

Java Mapping

Position generateRandomPositionLocally(Position centre, int range);

Documentation for PathEngine release 6.00 - Copyright © 2002-2016 PathEnginenext: iMesh::generateUnobstructedSpaceFor()