73 lines
2.2 KiB
HTML
73 lines
2.2 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|||
|
|
|
||
|
|
<html>
|
||
|
|
<head>
|
||
|
|
<title>Paths</title>
|
||
|
|
<link href="style.css" rel="stylesheet" type="text/css">
|
||
|
|
</head>
|
||
|
|
<body background="images/back.gif">
|
||
|
|
<!--START-->
|
||
|
|
|
||
|
|
<h3>Paths</h3>
|
||
|
|
|
||
|
|
The following functions will give you information about a path:
|
||
|
|
|
||
|
|
<p>
|
||
|
|
<blockquote>
|
||
|
|
<tt><b>path_exists(ind)</b></tt>
|
||
|
|
Returns whether a path with the given index exists.<br>
|
||
|
|
<tt><b>path_get_name(ind)</b></tt>
|
||
|
|
Returns the name of the path with the given index.<br>
|
||
|
|
<tt><b>path_get_length(ind)</b></tt>
|
||
|
|
Returns the length of the path with the given index.<br>
|
||
|
|
<tt><b>path_get_kind(ind)</b></tt>
|
||
|
|
Returns the kind of connections of the path with the given index (0=straight, 1=smooth).<br>
|
||
|
|
<tt><b>path_get_closed(ind)</b></tt>
|
||
|
|
Returns whether the path is closed or not.<br>
|
||
|
|
<tt><b>path_get_precision(ind)</b></tt>
|
||
|
|
Returns the precision used for creating smoothed paths.<br>
|
||
|
|
<tt><b>path_get_number(ind)</b></tt>
|
||
|
|
Returns the number of defining points for the path.<br>
|
||
|
|
<tt><b>path_get_point_x(ind,n)</b></tt>
|
||
|
|
Returns the x-coordinate of the n'th defining point for
|
||
|
|
the path. 0 is the first point.<br>
|
||
|
|
<tt><b>path_get_point_y(ind,n)</b></tt>
|
||
|
|
Returns the y-coordinate of the n'th defining point for
|
||
|
|
the path. 0 is the first point.<br>
|
||
|
|
<tt><b>path_get_point_speed(ind,n)</b></tt>
|
||
|
|
Returns the speed factor at the n'th defining point
|
||
|
|
for the path. 0 is the first point.<br>
|
||
|
|
<tt><b>path_get_x(ind,pos)</b></tt>
|
||
|
|
Returns the x-coordinate at position pos for the path. pos
|
||
|
|
must lie between 0 and 1.<br>
|
||
|
|
<tt><b>path_get_y(ind,pos)</b></tt>
|
||
|
|
Returns the y-coordinate at position pos for the path. pos
|
||
|
|
must lie between 0 and 1.<br>
|
||
|
|
<tt><b>path_get_speed(ind,pos)</b></tt>
|
||
|
|
Returns the speed factor at position pos for the path.
|
||
|
|
pos must lie between 0 and 1.<br>
|
||
|
|
</blockquote>
|
||
|
|
|
||
|
|
<p>
|
||
|
|
|
||
|
|
|
||
|
|
<!--END-->
|
||
|
|
</body>
|
||
|
|
</html>
|
||
|
|
|
||
|
|
<!-- KEYWORDS
|
||
|
|
path_exists()
|
||
|
|
path_get_name()
|
||
|
|
path_get_length()
|
||
|
|
path_get_kind()
|
||
|
|
path_get_closed()
|
||
|
|
path_get_precision()
|
||
|
|
path_get_number()
|
||
|
|
path_get_point_x()
|
||
|
|
path_get_point_y()
|
||
|
|
path_get_point_speed()
|
||
|
|
path_get_x()
|
||
|
|
path_get_y()
|
||
|
|
path_get_speed()
|
||
|
|
|
||
|
|
-->
|