Class Graphene

java.lang.Object
org.gnome.graphene.Graphene

@Generated("org.javagi.JavaGI") public final class Graphene extends Object
Constants and functions that are declared in the global Graphene namespace.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final double
     
    static final double
     
    static final int
    Evaluates to the number of components of a graphene_vec2_t.
    static final int
    Evaluates to the number of components of a graphene_vec3_t.
    static final int
    Evaluates to the number of components of a graphene_vec4_t.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • PI

      public static final double PI
      See Also:
    • PI_2

      public static final double PI_2
      See Also:
    • VEC2_LEN

      public static final int VEC2_LEN

      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]);
      
      Since:
      1.0
      See Also:
    • VEC3_LEN

      public static final int VEC3_LEN

      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]);
      
      Since:
      1.0
      See Also:
    • VEC4_LEN

      public static final int VEC4_LEN

      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]);
      
      Since:
      1.0
      See Also:
  • Constructor Details

    • Graphene

      public Graphene()
  • Method Details

    • javagi$ensureInitialized

      public static void javagi$ensureInitialized()