Cogl.vector3_init

function vector3_init(vector: Number(gfloat), x: Number(gfloat), y: Number(gfloat), z: Number(gfloat)): void {
    // Gjs wrapper for cogl_vector3_init()
}
  

Initializes a 3 component, single precision float vector which can then be manipulated with the cogl_vector convenience APIs. Vectors can also be used in places where a "point" is often desired.

Since 1.4

vector

The 3 component vector you want to initialize

x

The x component

y

The y component

z

The z component