length function
Calculates the length of a vec3
@param {ReadonlyVec3} a vector to calculate length of @returns {Number} length of a
Implementation
double length(List<double> a) {
final x = a[0];
final y = a[1];
final z = a[2];
return hypot([x, y, z]);
}