Graphene

object Graphene

Skipped during bindings generation

  • record Simd4F: C Type graphene_simd4f_t is ignored

Properties

Link copied to clipboard
const val PI: Double = 3.141593
Link copied to clipboard
const val PI_2: Double = 1.570796
Link copied to clipboard
const val VEC2_LEN: Int = 2

Evaluates to the number of components of a #graphene_vec2_t.

Link copied to clipboard
const val VEC3_LEN: Int = 3

Evaluates to the number of components of a #graphene_vec3_t.

Link copied to clipboard
const val VEC4_LEN: Int = 4

Evaluates to the number of components of a #graphene_vec4_t.

Functions

Link copied to clipboard
fun boxEmpty(): Box

A degenerate #graphene_box_t that can only be expanded.

Link copied to clipboard

A degenerate #graphene_box_t that cannot be expanded.

Link copied to clipboard

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

Link copied to clipboard
fun boxOne(): Box

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

Link copied to clipboard

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

Link copied to clipboard
fun boxZero(): Box

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

Link copied to clipboard

Retrieves a constant point with all three coordinates set to 0.

Link copied to clipboard

Returns a point fixed at (0, 0).

Link copied to clipboard

Allocates a new #graphene_rect_t.

Link copied to clipboard
fun rectZero(): Rect

Returns a degenerate rectangle with origin fixed at (0, 0) and a size of 0, 0.

Link copied to clipboard
fun sizeZero(): Size

A constant pointer to a zero #graphene_size_t, useful for equality checks and interpolations.

Link copied to clipboard
fun vec2One(): Vec2

Retrieves a constant vector with (1, 1) components.

Link copied to clipboard

Retrieves a constant vector with (1, 0) components.

Link copied to clipboard

Retrieves a constant vector with (0, 1) components.

Link copied to clipboard
fun vec2Zero(): Vec2

Retrieves a constant vector with (0, 0) components.

Link copied to clipboard
fun vec3One(): Vec3

Provides a constant pointer to a vector with three components, all sets to 1.

Link copied to clipboard

Provides a constant pointer to a vector with three components with values set to (1, 0, 0).

Link copied to clipboard

Provides a constant pointer to a vector with three components with values set to (0, 1, 0).

Link copied to clipboard

Provides a constant pointer to a vector with three components with values set to (0, 0, 1).

Link copied to clipboard
fun vec3Zero(): Vec3

Provides a constant pointer to a vector with three components, all sets to 0.

Link copied to clipboard
fun vec4One(): Vec4

Retrieves a pointer to a #graphene_vec4_t with all its components set to 1.

Link copied to clipboard

Retrieves a pointer to a #graphene_vec4_t with its components set to (0, 0, 0, 1).

Link copied to clipboard

Retrieves a pointer to a #graphene_vec4_t with its components set to (1, 0, 0, 0).

Link copied to clipboard

Retrieves a pointer to a #graphene_vec4_t with its components set to (0, 1, 0, 0).

Link copied to clipboard

Retrieves a pointer to a #graphene_vec4_t with its components set to (0, 0, 1, 0).

Link copied to clipboard
fun vec4Zero(): Vec4

Retrieves a pointer to a #graphene_vec4_t with all its components set to 0.