Cogl.Quaternion.prototype.init
function init(angle: Number(gfloat), x: Number(gfloat), y: Number(gfloat), z: Number(gfloat)): void { // Gjs wrapper for cogl_quaternion_init() }
Initializes a quaternion that rotates angle degrees around the axis vector (x, y, z). The axis vector does not need to be normalized.
Since 2.0
- angle
The angle you want to rotate around the given axis
- x
The x component of your axis vector about which you want to rotate.
- y
The y component of your axis vector about which you want to rotate.
- z
The z component of your axis vector about which you want to rotate.