Optionalproperties: Partial<{}>Computes the dot product of the two given vectors.
the value of the dot product
Checks whether the two given Graphene.Vec4 are equal.
true if the two vectors are equal, and false otherwise
Frees the resources allocated by v
Retrieves the value of the fourth component of the given Graphene.Vec4.
the value of the fourth component
Retrieves the value of the first component of the given Graphene.Vec4.
the value of the first component
Creates a Graphene.Vec2 that contains the first two components of the given Graphene.Vec4.
Creates a Graphene.Vec3 that contains the first three components of the given Graphene.Vec4.
Retrieves the value of the second component of the given Graphene.Vec4.
the value of the second component
Retrieves the value of the third component of the given Graphene.Vec4.
the value of the third component
Initializes a Graphene.Vec4 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
a pointer to the initialized vector
Initializes a Graphene.Vec4 with the values inside the given array.
an array of four floating point values
the initialized vector
Initializes a Graphene.Vec4 using the components of a
Graphene.Vec2 and the values of z and w.
the value for the third component of v
the value for the fourth component of v
the initialized vector
Initializes a Graphene.Vec4 using the components of a
Graphene.Vec3 and the value of w.
the value for the fourth component of v
the initialized vector
Initializes a Graphene.Vec4 using the components of another Graphene.Vec4.
the initialized vector
Compares the two given Graphene.Vec4 vectors and checks
whether their values are within the given epsilon.
the threshold between the two vectors
true if the two vectors are near each other
Negates the given Graphene.Vec4.
Normalizes the given Graphene.Vec4.
Multiplies all components of the given vector with the given scalar factor.
the scalar factor
Stores the components of the given Graphene.Vec4 into an array of floating point values.
StaticallocStaticoneRetrieves a pointer to a Graphene.Vec4 with all its components set to 1.
Staticw_Retrieves a pointer to a Graphene.Vec4 with its components set to (0, 0, 0, 1).
Staticx_Retrieves a pointer to a Graphene.Vec4 with its components set to (1, 0, 0, 0).
Staticy_Retrieves a pointer to a Graphene.Vec4 with its components set to (0, 1, 0, 0).
Staticz_Retrieves a pointer to a Graphene.Vec4 with its components set to (0, 0, 1, 0).
StaticzeroRetrieves a pointer to a Graphene.Vec4 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 structure are private and should never be accessed directly.