Revision Difference
Angle#523647
<cat>classfunc</cat>⤶
⤶
List of all possible functions to manipulate angles.
<type name="Angle" category="classfunc" is="class">⤶
<summary>List of all possible functions to manipulate angles.
Created by <page>Global.Angle</page>.
| Type | Name | Description |
| ------------------- | ------------------------------------ | -------------------------------- |
| <page>number</page> | **p** or **pitch** or **x** or **1** | The pitch component of the angle |
| <page>number</page> | **y** or **yaw** or **2** | The yaw component of the angle |
| <page>number</page> | **r** or **roll** or **z** or **3** | The roll component of the angle |
⤶
</summary>⤶
</type>⤶
<example>
<description>Indexing by angular single-character component.</description>
<code>
local a = Angle( 1, 2, 3 )
print( a.p, a.y, a.r )
</code>
<output>1 2 3</output>
</example>
<example>
<description>Indexing by angular named component.</description>
<code>
local a = Angle( 1, 2, 3 )
print( a.pitch, a.yaw, a.roll )
</code>
<output>1 2 3</output>
</example>
<example>
<description>Indexing by vector single-character component.</description>
<code>
local a = Angle( 1, 2, 3 )
print( a.x, a.y, a.z )
</code>
<output>1 2 3</output>
</example>
<example>
<description>Indexing by number (most efficient!).</description>
<code>
local a = Angle( 1, 2, 3 )
print( a[1], a[2], a[3] )
</code>
<output>1 2 3</output>
</example>
⤶
⤶
# Members⤶
⤶
<pagelist category="classfunc" filter="Angle:(.+)"></pagelist>