Sets our main struct and passes it to the parent class.
Allocates a new #graphene_vec2_t structure.
Adds each component of the two passed vectors and places each result into the components of @res.
Divides each component of the first operand @a by the corresponding component of the second operand @b, and places the results into the vector @res.
Computes the dot product of the two given vectors.
Checks whether the two given #graphene_vec2_t are equal.
Frees the resources allocated by @v
the main Gtk struct as a void*
Get the main Gtk struct
Retrieves the X component of the #graphene_vec2_t.
Retrieves the Y component of the #graphene_vec2_t.
Initializes a #graphene_vec2_t using the given values.
Initializes @v with the contents of the given array.
Copies the contents of @src into @v.
Linearly interpolates @v1 and @v2 using the given @factor.
Computes the length of the given vector.
Compares the two given vectors and places the maximum values of each component into @res.
Compares the two given vectors and places the minimum values of each component into @res.
Multiplies each component of the two passed vectors and places each result into the components of @res.
Compares the two given #graphene_vec2_t vectors and checks whether their values are within the given @epsilon.
Negates the given #graphene_vec2_t.
Computes the normalized vector for the given vector @v.
Multiplies all components of the given vector with the given scalar @factor.
Subtracts from each component of the first operand @a the corresponding component of the second operand @b and places each result into the components of @res.
Stores the components of @v into an array.
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.
the main Gtk struct
A structure capable of holding a vector with two dimensions, x and y.
The contents of the #graphene_vec2_t structure are private and should never be accessed directly.