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 v[GRAPHENE_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, v[i]);
Evaluates to the number of components of a #graphene_vec4_t.
This symbol is useful when declaring a C array of floating point values to be used with graphene_vec4_init_from_float() and graphene_vec4_to_float(), e.g.
|[ float v[GRAPHENE_VEC4_LEN];
// vec is defined elsewhere graphene_vec4_to_float (&vec, v);
for (int i = 0; i < GRAPHENE_VEC4_LEN; i++) fprintf (stdout, "component %d: %g\n", i, v[i]);
Retrieves a constant point with all three coordinates set to 0.
Retrieves a constant vector with (1, 1) components.
Retrieves a constant vector with (1, 0) components.
Retrieves a constant vector with (0, 1) components.
Retrieves a constant vector with (0, 0) components.
Retrieves a pointer to a #graphene_vec4_t with all its components set to 1.
Retrieves a pointer to a #graphene_vec4_t with its components set to (0, 0, 0, 1).
Retrieves a pointer to a #graphene_vec4_t with its components set to (1, 0, 0, 0).
Retrieves a pointer to a #graphene_vec4_t with its components set to (0, 1, 0, 0).
Retrieves a pointer to a #graphene_vec4_t with its components set to (0, 0, 1, 0).
Retrieves a pointer to a #graphene_vec4_t with all its components set to 0.
Evaluates to the number of components of a #graphene_vec2_t.
This symbol is useful when declaring a C array of floating point values to be used with graphene_vec2_init_from_float() and graphene_vec2_to_float(), e.g.
|[ float v[GRAPHENE_VEC2_LEN];
// vec is defined elsewhere graphene_vec2_to_float (&vec, v);
for (int i = 0; i < GRAPHENE_VEC2_LEN; i++) fprintf (stdout, "component %d: %g\n", i, v[i]);