1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
4
<title>Castle Game Engine: CastleConvexHull</title>
5
<meta name="generator" content="PasDoc 0.12.1">
6
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
7
<link rel="StyleSheet" type="text/css" href="pasdoc.css">
10
<table class="container"><tr><td class="navigation">
11
<h2>Castle Game Engine</h2><p><a href="introduction.html" class="navigation">Introduction</a></p><p><a href="AllUnits.html" class="navigation">Units</a></p><p><a href="ClassHierarchy.html" class="navigation">Class Hierarchy</a></p><p><a href="AllClasses.html" class="navigation">Classes, Interfaces, Objects and Records</a></p><p><a href="AllTypes.html" class="navigation">Types</a></p><p><a href="AllVariables.html" class="navigation">Variables</a></p><p><a href="AllConstants.html" class="navigation">Constants</a></p><p><a href="AllFunctions.html" class="navigation">Functions and Procedures</a></p><p><a href="AllIdentifiers.html" class="navigation">Identifiers</a></p></td><td class="content">
12
<h1 class="unit">Unit CastleConvexHull</h1>
13
<table class="sections wide_list">
15
<td><a class="section" href="#PasDoc-Description">Description</a></td><td><a class="section" href="#PasDoc-Uses">Uses</a></td><td>Classes, Interfaces, Objects and Records</td><td><a class="section" href="#PasDoc-FuncsProcs">Functions and Procedures</a></td><td>Types</td><td>Constants</td><td>Variables</td></tr></table>
16
<a name="PasDoc-Description"></a><h2 class="description">Description</h2>
18
Calculating convex hull.</p>
19
<a name="PasDoc-Uses"></a><h2 class="uses">Uses</h2>
20
<ul class="useslist"><li><a href="CastleVectors.html">CastleVectors</a></li><li><a href="CastleUtils.html">CastleUtils</a></li><li>Math</li></ul><h2 class="overview">Overview</h2>
21
<a name="PasDoc-FuncsProcs"></a><h3 class="summary">Functions and Procedures</h3>
22
<table class="summary wide_list">
24
<td class="itemcode"><code>function <b><a href="CastleConvexHull.html#ConvexHull">ConvexHull</a></b>(Points: <a href="CastleVectors.TVector3SingleList.html">TVector3SingleList</a>): <a href="CastleUtils.TIntegerList.html">TIntegerList</a>;</code></td>
27
<h2 class="description">Description</h2>
28
<h3 class="detail">Functions and Procedures</h3>
29
<table class="detail wide_list">
31
<td class="itemcode"><a name="ConvexHull"></a><code>function <b>ConvexHull</b>(Points: <a href="CastleVectors.TVector3SingleList.html">TVector3SingleList</a>): <a href="CastleUtils.TIntegerList.html">TIntegerList</a>;</code></td>
35
Calculates <code>ConvexHull</code> ignoring Z coordinates of pixels. That is, all Points[*][2] are ignored. Returns newly created array with the indices to Points. If you want to draw an edge of convex hull, you want to iterate over these points like (for each i) Points[Result[i]]).
37
<p>Points.Count must be >= 1.</p>
40
<hr noshade size="1"><span class="appinfo"><em>Generated by <a href="http://pasdoc.sourceforge.net/">PasDoc 0.12.1</a> on 2013-02-04 20:26:50</em>
42
</td></tr></table></body></html>