MapShape.getIntersectionWithRay

Syntax

getIntersectionWithRay(ray: PP.Ray);

Parameters

ray. Beam that intersects map layer area. The is a JSON object with the following properties: start - beam start point, dir - point that determines beam direction.

Description

The getIntersectionWithRay method returns the distance from the beam beginning to its crossing with an arrow on the map.

Comments

The method returns a Number type value.

Example

The method is under development.

See also:

MapShape