Computes the dot product of the two given vectors.
a #graphene_vec4_t
Checks whether the two given #graphene_vec4_t are equal.
a #graphene_vec4_t
Frees the resources allocated by v
Retrieves the value of the fourth component of the given #graphene_vec4_t.
Retrieves the value of the first component of the given #graphene_vec4_t.
Creates a #graphene_vec2_t that contains the first two components of the given #graphene_vec4_t.
Retrieves the value of the second component of the given #graphene_vec4_t.
Retrieves the value of the third component of the given #graphene_vec4_t.
Initializes a #graphene_vec4_t using the given values.
This function can be called multiple times.
the X field of the vector
the Y field of the vector
the Z field of the vector
the W field of the vector
Initializes a #graphene_vec4_t with the values inside the given array.
an array of four floating point values
Computes the length of the given #graphene_vec4_t.
Compares the two given #graphene_vec4_t vectors and checks
whether their values are within the given epsilon
.
a #graphene_vec4_t
the threshold between the two vectors
Negates the given #graphene_vec4_t.
Normalizes the given #graphene_vec4_t.
Multiplies all components of the given vector with the given scalar factor
.
the scalar factor
Stores the components of the given #graphene_vec4_t into an array of floating point values.
Allocates a new #graphene_vec4_t structure.
The contents of the returned structure are undefined.
Use graphene_vec4_init() to initialize the vector.
Retrieves a pointer to a #graphene_vec4_t with all its components set to 1.
Retrieves a pointer to a #graphene_vec4_t with its components set to (0, 0, 0, 1).
Retrieves a pointer to a #graphene_vec4_t with its components set to (1, 0, 0, 0).
Retrieves a pointer to a #graphene_vec4_t with its components set to (0, 1, 0, 0).
Retrieves a pointer to a #graphene_vec4_t with its components set to (0, 0, 1, 0).
Retrieves a pointer to a #graphene_vec4_t with all its components set to 0.
A structure capable of holding a vector with four dimensions: x, y, z, and w.
The contents of the #graphene_vec4_t structure are private and should never be accessed directly.