1 auto a = [ 1.0f, 1, 1 ]; 2 assert( a.variance == 0.0f ); 3 4 auto b = [ 1.0f, 2, 3 ]; 5 assert( b.variance == 1.0f );
import des.math.linear.vector; auto a = [ vec3(1,2,3), vec3(2,3,4), vec3(3,4,5) ]; assert( a.variance == vec3(1,1,1) );
See Implementation