Cogl.Quaternion.prototype.init_from_angle_vector

function init_from_angle_vector(angle: Number(gfloat), axis3f: Number(gfloat)): void {
    // Gjs wrapper for cogl_quaternion_init_from_angle_vector()
}
  

Initializes a quaternion that rotates angle degrees around the given @axis vector. The axis vector does not need to be normalized.

Since 2.0

angle

The angle to rotate around axis3f

axis3f

your 3 component axis vector about which you want to rotate.