Cogl.vector3_distance
function vector3_distance(a: Number(gfloat), b: Number(gfloat)): Number(gfloat) { // Gjs wrapper for cogl_vector3_distance() }
If you consider the two given vectors as (x,y,z) points instead then this will compute the distance between those two points.
Since 1.4
- a
The first point
- b
The second point
- Returns
The distance between two points given as 3 component vectors.