Gjsify LogoGjsify Logo

Index

Variables

PI: number
PI_2: number
VEC2_LEN: number

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]);


VEC3_LEN: number

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]);


VEC4_LEN: number

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]);


Functions

  • A #graphene_box_t with the minimum vertex set at (-1, -1, -1) and the maximum vertex set at (0, 0, 0).

    The returned value is owned by Graphene and should not be modified or freed.

    Returns Graphene.Box

  • A #graphene_box_t with the minimum vertex set at (0, 0, 0) and the maximum vertex set at (1, 1, 1).

    The returned value is owned by Graphene and should not be modified or freed.

    Returns Graphene.Box

  • A #graphene_box_t with the minimum vertex set at (-1, -1, -1) and the maximum vertex set at (1, 1, 1).

    The returned value is owned by Graphene and should not be modified or freed.

    Returns Graphene.Box

  • A #graphene_box_t with both the minimum and maximum vertices set at (0, 0, 0).

    The returned value is owned by Graphene and should not be modified or freed.

    Returns Graphene.Box

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method