/usr/share/gtk-doc/html/cogl-2.0-experimental/cogl-2.0-experimental-Eulers-(Rotations).html is in libcogl-doc 1.22.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Eulers (Rotations): Cogl 2.0 Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="Cogl 2.0 Reference Manual">
<link rel="up" href="cogl-utilities.html" title="Utilities">
<link rel="prev" href="cogl-2.0-experimental-3-Component-Vectors.html" title="3 Component Vectors">
<link rel="next" href="cogl-2.0-experimental-Quaternions-(Rotations).html" title="Quaternions (Rotations)">
<meta name="generator" content="GTK-Doc V1.24 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
<a href="#cogl-2.0-experimental-Eulers-(Rotations).description" class="shortcut">Description</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="cogl-utilities.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="cogl-2.0-experimental-3-Component-Vectors.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="cogl-2.0-experimental-Quaternions-(Rotations).html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="cogl-2.0-experimental-Eulers-(Rotations)"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="cogl-2.0-experimental-Eulers-(Rotations).top_of_page"></a>Eulers (Rotations)</span></h2>
<p>Eulers (Rotations) — Functions for initializing and manipulating
euler angles.</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="cogl-2.0-experimental-Eulers-(Rotations).functions"></a><h2>Functions</h2>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="cogl-2.0-experimental-Eulers-(Rotations).html#cogl-euler-init" title="cogl_euler_init ()">cogl_euler_init</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="cogl-2.0-experimental-Eulers-(Rotations).html#cogl-euler-init-from-matrix" title="cogl_euler_init_from_matrix ()">cogl_euler_init_from_matrix</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="cogl-2.0-experimental-Eulers-(Rotations).html#cogl-euler-init-from-quaternion" title="cogl_euler_init_from_quaternion ()">cogl_euler_init_from_quaternion</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="cogl-2.0-experimental-Common-Types.html#CoglBool" title="CoglBool"><span class="returnvalue">CoglBool</span></a>
</td>
<td class="function_name">
<a class="link" href="cogl-2.0-experimental-Eulers-(Rotations).html#cogl-euler-equal" title="cogl_euler_equal ()">cogl_euler_equal</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="cogl-2.0-experimental-Eulers-(Rotations).html#CoglEuler" title="CoglEuler"><span class="returnvalue">CoglEuler</span></a> *
</td>
<td class="function_name">
<a class="link" href="cogl-2.0-experimental-Eulers-(Rotations).html#cogl-euler-copy" title="cogl_euler_copy ()">cogl_euler_copy</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="cogl-2.0-experimental-Eulers-(Rotations).html#cogl-euler-free" title="cogl_euler_free ()">cogl_euler_free</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="cogl-2.0-experimental-Eulers-(Rotations).other"></a><h2>Types and Values</h2>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody><tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="cogl-2.0-experimental-Eulers-(Rotations).html#CoglEuler" title="CoglEuler">CoglEuler</a></td>
</tr></tbody>
</table></div>
</div>
<div class="refsect1">
<a name="cogl-2.0-experimental-Eulers-(Rotations).description"></a><h2>Description</h2>
<p>Euler angles are a simple representation of a 3 dimensional
rotation; comprised of 3 ordered heading, pitch and roll rotations.
An important thing to understand is that the axis of rotation
belong to the object being rotated and so they also rotate as each
of the heading, pitch and roll rotations are applied.</p>
<p>One way to consider euler angles is to imagine controlling an
aeroplane, where you first choose a heading (Such as flying south
east), then you set the pitch (such as 30 degrees to take off) and
then you might set a roll, by dipping the left, wing as you prepare
to turn.</p>
<p>They have some advantages and limitations that it helps to be
aware of:</p>
<p>Advantages:</p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem">
Easy to understand and use, compared to quaternions and matrices,
so may be a good choice for a user interface.
</li>
<li class="listitem">
Efficient storage, needing only 3 components any rotation can be
represented.
<div class="note">Actually the <a class="link" href="cogl-2.0-experimental-Eulers-(Rotations).html#CoglEuler" title="CoglEuler"><span class="type">CoglEuler</span></a> type isn't optimized for size because
we may cache the equivalent <a class="link" href="cogl-2.0-experimental-Quaternions-(Rotations).html#CoglQuaternion" title="CoglQuaternion"><span class="type">CoglQuaternion</span></a> along with a euler
rotation, but it would be trivial for an application to track the
components of euler rotations in a packed float array if optimizing
for size was important. The values could be passed to Cogl only when
manipulation is necessary.</div>
</li>
</ul></div>
<p>Disadvantages:</p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem">
Aliasing: it's possible to represent some rotations with multiple
different heading, pitch and roll rotations.
</li>
<li class="listitem">
They can suffer from a problem called Gimbal Lock. A good
explanation of this can be seen on wikipedia here:
http://en.wikipedia.org/wiki/Gimbal_lock but basically two
of the axis of rotation may become aligned and so you loose a
degree of freedom. For example a pitch of +-90° would mean that
heading and bank rotate around the same axis.
</li>
<li class="listitem">
If you use euler angles to orient something in 3D space and try to
transition between orientations by interpolating the component
angles you probably wont get the transitions you expect as they may
not follow the shortest path between the two orientations.
</li>
<li class="listitem">
There's no standard to what order the component axis rotations are
applied. The most common convention seems to be what we do in Cogl
with heading (y-axis), pitch (x-axis) and then roll (z-axis), but
other software might apply x-axis, y-axis then z-axis or any other
order so you need to consider this if you are accepting euler
rotations from some other software. Other software may also use
slightly different aeronautical terms, such as "yaw" instead of
"heading" or "bank" instead of "roll".
</li>
</ul></div>
<p>To minimize the aliasing issue we may refer to "Canonical Euler"
angles where heading and roll are restricted to +- 180° and pitch is
restricted to +- 90°. If pitch is +- 90° bank is set to 0°.</p>
<p>Quaternions don't suffer from Gimbal Lock and they can be nicely
interpolated between, their disadvantage is that they don't have an
intuitive representation.</p>
<p>A common practice is to accept angles in the intuitive Euler form
and convert them to quaternions internally to avoid Gimbal Lock and
handle interpolations. See <a class="link" href="cogl-2.0-experimental-Quaternions-(Rotations).html#cogl-quaternion-init-from-euler" title="cogl_quaternion_init_from_euler ()"><code class="function">cogl_quaternion_init_from_euler()</code></a>.</p>
</div>
<div class="refsect1">
<a name="cogl-2.0-experimental-Eulers-(Rotations).functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="cogl-euler-init"></a><h3>cogl_euler_init ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
cogl_euler_init (<em class="parameter"><code><a class="link" href="cogl-2.0-experimental-Eulers-(Rotations).html#CoglEuler" title="CoglEuler"><span class="type">CoglEuler</span></a> *euler</code></em>,
<em class="parameter"><code><span class="type">float</span> heading</code></em>,
<em class="parameter"><code><span class="type">float</span> pitch</code></em>,
<em class="parameter"><code><span class="type">float</span> roll</code></em>);</pre>
<p>Initializes <em class="parameter"><code>euler</code></em>
to represent a rotation of <em class="parameter"><code>x_angle</code></em>
degrees
around the x axis, then <em class="parameter"><code>y_angle</code></em>
degrees around the y_axis and
<em class="parameter"><code>z_angle</code></em>
degrees around the z axis.</p>
<div class="refsect3">
<a name="id-1.2.13.6.6.2.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>euler</p></td>
<td class="parameter_description"><p>The <a class="link" href="cogl-2.0-experimental-Eulers-(Rotations).html#CoglEuler" title="CoglEuler"><span class="type">CoglEuler</span></a> angle to initialize</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>heading</p></td>
<td class="parameter_description"><p>Angle to rotate around an object's y axis</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>pitch</p></td>
<td class="parameter_description"><p>Angle to rotate around an object's x axis</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>roll</p></td>
<td class="parameter_description"><p>Angle to rotate around an object's z axis</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: 2.0</p>
</div>
<hr>
<div class="refsect2">
<a name="cogl-euler-init-from-matrix"></a><h3>cogl_euler_init_from_matrix ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
cogl_euler_init_from_matrix (<em class="parameter"><code><a class="link" href="cogl-2.0-experimental-Eulers-(Rotations).html#CoglEuler" title="CoglEuler"><span class="type">CoglEuler</span></a> *euler</code></em>,
<em class="parameter"><code>const <a class="link" href="cogl-2.0-experimental-Matrices.html#CoglMatrix" title="CoglMatrix"><span class="type">CoglMatrix</span></a> *matrix</code></em>);</pre>
<p>Extracts a euler rotation from the given <em class="parameter"><code>matrix</code></em>
and
initializses <em class="parameter"><code>euler</code></em>
with the component x, y and z rotation angles.</p>
<div class="refsect3">
<a name="id-1.2.13.6.6.3.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>euler</p></td>
<td class="parameter_description"><p>The <a class="link" href="cogl-2.0-experimental-Eulers-(Rotations).html#CoglEuler" title="CoglEuler"><span class="type">CoglEuler</span></a> angle to initialize</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>matrix</p></td>
<td class="parameter_description"><p>A <a class="link" href="cogl-2.0-experimental-Matrices.html#CoglMatrix" title="CoglMatrix"><span class="type">CoglMatrix</span></a> containing a rotation, but no scaling,
mirroring or skewing.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="cogl-euler-init-from-quaternion"></a><h3>cogl_euler_init_from_quaternion ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
cogl_euler_init_from_quaternion (<em class="parameter"><code><a class="link" href="cogl-2.0-experimental-Eulers-(Rotations).html#CoglEuler" title="CoglEuler"><span class="type">CoglEuler</span></a> *euler</code></em>,
<em class="parameter"><code>const <a class="link" href="cogl-2.0-experimental-Quaternions-(Rotations).html#CoglQuaternion" title="CoglQuaternion"><span class="type">CoglQuaternion</span></a> *quaternion</code></em>);</pre>
<p>Initializes a <em class="parameter"><code>euler</code></em>
rotation with the equivalent rotation
represented by the given <em class="parameter"><code>quaternion</code></em>
.</p>
<div class="refsect3">
<a name="id-1.2.13.6.6.4.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>euler</p></td>
<td class="parameter_description"><p>The <a class="link" href="cogl-2.0-experimental-Eulers-(Rotations).html#CoglEuler" title="CoglEuler"><span class="type">CoglEuler</span></a> angle to initialize</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>quaternion</p></td>
<td class="parameter_description"><p>A <a class="link" href="cogl-2.0-experimental-Eulers-(Rotations).html#CoglEuler" title="CoglEuler"><span class="type">CoglEuler</span></a> with the rotation to initialize with</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="cogl-euler-equal"></a><h3>cogl_euler_equal ()</h3>
<pre class="programlisting"><a class="link" href="cogl-2.0-experimental-Common-Types.html#CoglBool" title="CoglBool"><span class="returnvalue">CoglBool</span></a>
cogl_euler_equal (<em class="parameter"><code>const <span class="type">void</span> *v1</code></em>,
<em class="parameter"><code>const <span class="type">void</span> *v2</code></em>);</pre>
<p>Compares the two given euler angles <em class="parameter"><code>v1</code></em>
and <em class="parameter"><code>v1</code></em>
and it they are
equal returns <code class="literal">TRUE</code> else <code class="literal">FALSE</code>.</p>
<div class="note">This function only checks that all three components rotations
are numerically equal, it does not consider that some rotations
can be represented with different component rotations</div>
<div class="refsect3">
<a name="id-1.2.13.6.6.5.6"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>v1</p></td>
<td class="parameter_description"><p>The first euler angle to compare</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>v2</p></td>
<td class="parameter_description"><p>The second euler angle to compare</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.2.13.6.6.5.7"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>v1</code></em>
and <em class="parameter"><code>v2</code></em>
are equal else <code class="literal">FALSE</code>.</p>
</div>
<p class="since">Since: 2.0</p>
</div>
<hr>
<div class="refsect2">
<a name="cogl-euler-copy"></a><h3>cogl_euler_copy ()</h3>
<pre class="programlisting"><a class="link" href="cogl-2.0-experimental-Eulers-(Rotations).html#CoglEuler" title="CoglEuler"><span class="returnvalue">CoglEuler</span></a> *
cogl_euler_copy (<em class="parameter"><code>const <a class="link" href="cogl-2.0-experimental-Eulers-(Rotations).html#CoglEuler" title="CoglEuler"><span class="type">CoglEuler</span></a> *src</code></em>);</pre>
<p>Allocates a new <a class="link" href="cogl-2.0-experimental-Eulers-(Rotations).html#CoglEuler" title="CoglEuler"><span class="type">CoglEuler</span></a> and initilizes it with the component
angles of <em class="parameter"><code>src</code></em>
. The newly allocated euler should be freed using
<a class="link" href="cogl-2.0-experimental-Eulers-(Rotations).html#cogl-euler-free" title="cogl_euler_free ()"><code class="function">cogl_euler_free()</code></a>.</p>
<div class="refsect3">
<a name="id-1.2.13.6.6.6.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>src</p></td>
<td class="parameter_description"><p>A <a class="link" href="cogl-2.0-experimental-Eulers-(Rotations).html#CoglEuler" title="CoglEuler"><span class="type">CoglEuler</span></a> to copy</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.2.13.6.6.6.6"></a><h4>Returns</h4>
<p> A newly allocated <a class="link" href="cogl-2.0-experimental-Eulers-(Rotations).html#CoglEuler" title="CoglEuler"><span class="type">CoglEuler</span></a></p>
</div>
<p class="since">Since: 2.0</p>
</div>
<hr>
<div class="refsect2">
<a name="cogl-euler-free"></a><h3>cogl_euler_free ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
cogl_euler_free (<em class="parameter"><code><a class="link" href="cogl-2.0-experimental-Eulers-(Rotations).html#CoglEuler" title="CoglEuler"><span class="type">CoglEuler</span></a> *euler</code></em>);</pre>
<p>Frees a <a class="link" href="cogl-2.0-experimental-Eulers-(Rotations).html#CoglEuler" title="CoglEuler"><span class="type">CoglEuler</span></a> that was previously allocated using
<a class="link" href="cogl-2.0-experimental-Eulers-(Rotations).html#cogl-euler-copy" title="cogl_euler_copy ()"><code class="function">cogl_euler_copy()</code></a>.</p>
<div class="refsect3">
<a name="id-1.2.13.6.6.7.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>euler</p></td>
<td class="parameter_description"><p>A <a class="link" href="cogl-2.0-experimental-Eulers-(Rotations).html#CoglEuler" title="CoglEuler"><span class="type">CoglEuler</span></a> allocated via <a class="link" href="cogl-2.0-experimental-Eulers-(Rotations).html#cogl-euler-copy" title="cogl_euler_copy ()"><code class="function">cogl_euler_copy()</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<p class="since">Since: 2.0</p>
</div>
</div>
<div class="refsect1">
<a name="cogl-2.0-experimental-Eulers-(Rotations).other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="CoglEuler"></a><h3>CoglEuler</h3>
<pre class="programlisting">typedef struct {
float heading;
float pitch;
float roll;
} CoglEuler;
</pre>
<p>Represents an ordered rotation first of <em class="parameter"><code>heading</code></em>
degrees around an
object's y axis, then <em class="parameter"><code>pitch</code></em>
degrees around an object's x axis and
finally <em class="parameter"><code>roll</code></em>
degrees around an object's z axis.</p>
<div class="note">It's important to understand the that axis are associated
with the object being rotated, so the axis also rotate in sequence
with the rotations being applied.</div>
<p>The members of a <a class="link" href="cogl-2.0-experimental-Eulers-(Rotations).html#CoglEuler" title="CoglEuler"><span class="type">CoglEuler</span></a> can be initialized, for example, with
<a class="link" href="cogl-2.0-experimental-Eulers-(Rotations).html#cogl-euler-init" title="cogl_euler_init ()"><code class="function">cogl_euler_init()</code></a> and <a class="link" href="cogl-2.0-experimental-Eulers-(Rotations).html#cogl-euler-init-from-quaternion" title="cogl_euler_init_from_quaternion ()"><code class="function">cogl_euler_init_from_quaternion()</code></a>.</p>
<p>You may also want to look at <a class="link" href="cogl-2.0-experimental-Quaternions-(Rotations).html#cogl-quaternion-init-from-euler" title="cogl_quaternion_init_from_euler ()"><code class="function">cogl_quaternion_init_from_euler()</code></a> if
you want to do interpolation between 3d rotations.</p>
<div class="refsect3">
<a name="id-1.2.13.6.7.2.8"></a><h4>Members</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="300px" class="struct_members_name">
<col class="struct_members_description">
<col width="200px" class="struct_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="struct_member_name"><p><span class="type">float</span> <em class="structfield"><code><a name="CoglEuler.heading"></a>heading</code></em>;</p></td>
<td class="struct_member_description"><p>Angle to rotate around an object's y axis</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><span class="type">float</span> <em class="structfield"><code><a name="CoglEuler.pitch"></a>pitch</code></em>;</p></td>
<td class="struct_member_description"><p>Angle to rotate around an object's x axis</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><span class="type">float</span> <em class="structfield"><code><a name="CoglEuler.roll"></a>roll</code></em>;</p></td>
<td class="struct_member_description"><p>Angle to rotate around an object's z axis</p></td>
<td class="struct_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: 2.0</p>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.24</div>
</body>
</html>
|