Constants ========= .. currentmodule:: gi.repository.Graphene .. data:: PI :value: 3.141593 .. data:: PI_2 :value: 1.570796 .. data:: VEC2_LEN :value: 2 Evaluates to the number of components of a :obj:`~gi.repository.Graphene.Vec2`\. This symbol is useful when declaring a C array of floating point values to be used with :func:`~gi.repository.Graphene.Vec2.init_from_float` and :func:`~gi.repository.Graphene.Vec2.to_float`, e.g. .. code-block:: :dedent: 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]); .. data:: VEC3_LEN :value: 3 Evaluates to the number of components of a :obj:`~gi.repository.Graphene.Vec3`\. This symbol is useful when declaring a C array of floating point values to be used with :func:`~gi.repository.Graphene.Vec3.init_from_float` and :func:`~gi.repository.Graphene.Vec3.to_float`, e.g. .. code-block:: :dedent: 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]); .. data:: VEC4_LEN :value: 4 Evaluates to the number of components of a :obj:`~gi.repository.Graphene.Vec4`\. This symbol is useful when declaring a C array of floating point values to be used with :func:`~gi.repository.Graphene.Vec4.init_from_float` and :func:`~gi.repository.Graphene.Vec4.to_float`, e.g. .. code-block:: :dedent: 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]);