path_get_point_x(ind,n)

From ENIGMA
Jump to navigation Jump to search

Description

Gets the x coordinate of the nth point of the path. 0 is the first point and returns the result.

Parameters

Parameter Data Type Description
ind unsigned index of the path
n unsigned nth index of the point

Return Values

double: Returns the x coordinate of the point in the path.

Example Call

// demonstrates getting the coordinates of the second point in a path
var ppx, ppy;
ppx = path_get_point_x(mypath, 1);
ppy = path_get_point_y(mypath, 1);