Files
processing4/mobile/web/reference/API/quad.xml
2005-01-27 06:48:42 +00:00

84 lines
1.6 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>quad()</name>
<category>Shape</category>
<subcategory>2D Primitives</subcategory>
<usage>Web &amp; Application</usage>
<example>
<image>quad_.gif</image>
<code>
quad(38, 31, 86, 20, 69, 63, 30, 76);
</code>
</example>
<description>
A quad is a quadrilateral, a four sided polygon. It is similar to a rectangle, but the angles between its edges are not constrained to ninety degrees.
</description>
<syntax>
quad(<c>x1</c>, <c>y1</c>, <c>x2</c>, <c>y2</c>, <c>x3</c>, <c>y3</c>, <c>x4</c>, <c>y4</c>);
</syntax>
<parameter>
<label>x1</label>
<description>int or float: x-coordinate of the first corner</description>
</parameter>
<parameter>
<label>y1</label>
<description>int or float: y-coordinate of the first corner</description>
</parameter>
<parameter>
<label>x2</label>
<description>int or float: x-coordinate of the second corner</description>
</parameter>
<parameter>
<label>y2</label>
<description>int or float: y-coordinate of the second corner</description>
</parameter>
<parameter>
<label>x3</label>
<description>int or float: x-coordinate of the third corner</description>
</parameter>
<parameter>
<label>y3</label>
<description>int or float: y-coordinate of the third corner</description>
</parameter>
<parameter>
<label>x4</label>
<description>int or float: x-coordinate of the fourth corner</description>
</parameter>
<parameter>
<label>y4</label>
<description>int or float: y-coordinate of the fourth corner</description>
</parameter>
<returns>None</returns>
<related></related>
<availability>1.0</availability>
<type>Function</type>
<partof>Core</partof>
</root>