Cogl.Euler

const Cogl = imports.gi.Cogl;

let euler = new Cogl.Euler({
    heading: value
    pitch: value
    roll: value
});
  

Represents an ordered rotation first of @heading degrees around an object's y axis, then @pitch degrees around an object's x axis and finally @roll degrees around an object's z axis.

<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.</note>

The members of a Cogl.Euler can be initialized, for example, with Cogl.Euler.prototype.init and cogl_euler_init_from_quaternion ().

You may also want to look at Cogl.Quaternion.prototype.init_from_euler if you want to do interpolation between 3d rotations.

Since 2.0