ISInterface:NavigationGetNearestPoint

From Lavish Software Wiki
Jump to navigation Jump to search

Syntax

  • bool NavigationGetNearestPoint(char *World, POINT3F &To, POINT3F &Dest)

Purpose

To get the nearest point to a given POINT3F coordinate in a world

Usage

Parameters

  • char *World
[in] Name of the world to use
  • POINT3F &To
[in] What POINT3F to find the nearest point to
  • POINT3F &Dest
[out] POINT3F variable to put the nearest point into

Return Value

  • bool
Returns true on success, false on failure

Examples

POINT3F CurrentPoint,ClosestPoint;
NavigationGetNearestPoint("Earth",CurrentPoint,ClosestPoint);

See Also