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.
Retrieves the X component of the #graphene_vec2_t.
Retrieves the Y component of the #graphene_vec2_t.
Initializes v with the contents of the given array.
Copies the contents of src into v.
Initializes a #graphene_vec2_t using the given values.
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.
Allocates a new #graphene_vec2_t structure.
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.
Pointer to the C boxed value
Get the GType of this boxed type.
Boxed GType property.
Convenience method to return this cast to a type. For use in D with statements.
Make a copy of the wrapped C boxed data.
Copy a C boxed value using g_boxed_copy.
Free a C boxed value using g_boxed_free.
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.