VEC3_LEN

const val VEC3_LEN: Int = 3

Evaluates to the number of components of a #graphene_vec3_t.

This symbol is useful when declaring a C array of floating point values to be used with graphene_vec3_init_from_float() and graphene_vec3_to_float(), e.g.

|[ float vGRAPHENE_VEC3_LEN;

// vec is defined elsewhere graphene_vec3_to_float (&vec, v);

for (int i = 0; i < GRAPHENE_VEC2_LEN; i++) fprintf (stdout, "component %d: %g\n", i, vi); ]|

Since

1.0