Open main menu

Difference between revisions of "SCI/FreeSCI/Pathfinding/Specification"

Formatting fix
(More linkify)
(Formatting fix)
Line 2: Line 2:
In this section we give a formal specification of the AvoidPath kernel function.
In this section we give a formal specification of the AvoidPath kernel function.


This function computes a path from a start point to an end point, avoiding a set of polygons. We start out by formalizing the main notions from [[http://wiki.scummvm.org/index.php/SCI/FreeSCI/Pathfinding/Patent#Sierra.27s_pathfinding_patent| Sierra's pathfinding patent]] section.
This function computes a path from a start point to an end point, avoiding a set of polygons. We start out by formalizing the main notions from [[SCI/FreeSCI/Pathfinding/Patent#Sierra.27s_pathfinding_patent|Sierra's pathfinding patent]] section.


A point v is a position in the plane. Let <i>x(v)</i> denote the x–coordinate of <i>v</i> and <i>y(v)</i> the y–coordinate of <i>v</i>.  
A point v is a position in the plane. Let <i>x(v)</i> denote the x–coordinate of <i>v</i> and <i>y(v)</i> the y–coordinate of <i>v</i>.  
245

edits