Difference between revisions of "love.math.triangulate"
(Created page with "{{newin|0.9.0|090|type=function}} Triangulate a simple polygon. == Function == === Synopsis === <source lang="lua"> triangles = love.math.triangulate( polygon ) </source> ===...") |
m |
||
Line 9: | Line 9: | ||
{{param|table|polygon|Polygon to triangulate. Must not intersect itself.}} | {{param|table|polygon|Polygon to triangulate. Must not intersect itself.}} | ||
=== Returns === | === Returns === | ||
− | {{param|table|triangles|List of triangles the polygon is composed of.}} | + | {{param|table|triangles|List of triangles the polygon is composed of, in the form of <nowiki>{{x1, y1, x2, y2, x3, y3}, {x1, y1, x2, y2, x3, y3}, ...}</nowiki>.}} |
== See Also == | == See Also == | ||
* [[parent::love.math]] | * [[parent::love.math]] |
Revision as of 03:55, 31 August 2013
Available since LÖVE 0.9.0 |
This function is not supported in earlier versions. |
Triangulate a simple polygon.
Function
Synopsis
triangles = love.math.triangulate( polygon )
Arguments
table polygon
- Polygon to triangulate. Must not intersect itself.
Returns
table triangles
- List of triangles the polygon is composed of, in the form of {{x1, y1, x2, y2, x3, y3}, {x1, y1, x2, y2, x3, y3}, ...}.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info