Optionalproperties: Partial<{}>Computes the dot product of the two given vectors.
the value of the dot product
Checks whether the two given Graphene.Vec3 are equal.
true if the two vectors are equal, and false otherwise
Frees the resources allocated by v
Retrieves the first component of the given vector v.
the value of the first component of the vector
Creates a Graphene.Vec2 that contains the first and second components of the given Graphene.Vec3.
Creates a Graphene.Vec3 that contains the first two components of the given Graphene.Vec3, and the third component set to 0.
Converts a Graphene.Vec3 in a Graphene.Vec4 using 0.0 as the value for the fourth component of the resulting vector.
Converts a Graphene.Vec3 in a Graphene.Vec4 using 1.0 as the value for the fourth component of the resulting vector.
Converts a Graphene.Vec3 in a Graphene.Vec4 using w as
the value of the fourth component of the resulting vector.
the value of the W component
Retrieves the second component of the given vector v.
the value of the second component of the vector
Retrieves the third component of the given vector v.
the value of the third component of the vector
Initializes a Graphene.Vec3 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
a pointer to the initialized vector
Initializes a Graphene.Vec3 with the values from an array.
an array of 3 floating point values
the initialized vector
Initializes a Graphene.Vec3 with the values of another Graphene.Vec3.
the initialized vector
Retrieves the length of the given vector v.
the value of the length of the vector
Compares the two given Graphene.Vec3 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.Vec3.
Normalizes the given Graphene.Vec3.
Multiplies all components of the given vector with the given scalar factor.
the scalar factor
Copies the components of a Graphene.Vec3 into the given array.
StaticallocStaticoneProvides a constant pointer to a vector with three components, all sets to 1.
Staticx_Provides a constant pointer to a vector with three components with values set to (1, 0, 0).
Staticy_Provides a constant pointer to a vector with three components with values set to (0, 1, 0).
Staticz_Provides a constant pointer to a vector with three components with values set to (0, 0, 1).
StaticzeroProvides a constant pointer to a vector with three components, all sets to 0.
A structure capable of holding a vector with three dimensions: x, y, and z.
The contents of the Graphene.Vec3 structure are private and should never be accessed directly.