Optionalproperties: Partial<{}>Since 1.0addSince 1.0divideSince 1.0dotComputes the dot product of the two given vectors.
the value of the dot product
Since 1.2equalChecks whether the two given Graphene.Vec4 are equal.
true if the two vectors are equal, and false otherwise
Since 1.0freeSince 1.0get_Retrieves the value of the fourth component of the given Graphene.Vec4.
the value of the fourth component
Since 1.0get_Retrieves the value of the first component of the given Graphene.Vec4.
the value of the first component
Since 1.0get_Creates a Graphene.Vec2 that contains the first two components of the given Graphene.Vec4.
Since 1.0get_Creates a Graphene.Vec3 that contains the first three components of the given Graphene.Vec4.
Since 1.0get_Retrieves the value of the second component of the given Graphene.Vec4.
the value of the second component
Since 1.0get_Retrieves the value of the third component of the given Graphene.Vec4.
the value of the third component
Since 1.0initInitializes 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
Since 1.0init_Initializes a Graphene.Vec4 with the values inside the given array.
an array of four floating point values
the initialized vector
Since 1.0init_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
Since 1.0init_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
Since 1.0init_Initializes a Graphene.Vec4 using the components of another Graphene.Vec4.
the initialized vector
Since 1.10interpolateSince 1.0lengthSince 1.0maxSince 1.0minSince 1.0multiplySince 1.2nearCompares 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
Since 1.2negateSince 1.0normalizeSince 1.2scaleMultiplies all components of the given vector with the given scalar factor.
the scalar factor
Since 1.0subtractSince 1.0to_Stores the components of the given Graphene.Vec4 into an array of floating point values.
StaticallocStaticSince 1.0oneStaticSince 1.0w_Retrieves a pointer to a Graphene.Vec4 with its components set to (0, 0, 0, 1).
StaticSince 1.0x_Retrieves a pointer to a Graphene.Vec4 with its components set to (1, 0, 0, 0).
StaticSince 1.0y_Retrieves a pointer to a Graphene.Vec4 with its components set to (0, 1, 0, 0).
StaticSince 1.0z_Retrieves a pointer to a Graphene.Vec4 with its components set to (0, 0, 1, 0).
StaticSince 1.0zero
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.