Optionalproperties: Partial<{}>Since 1.0addSince 1.0crossSince 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.Vec3 are equal.
true if the two vectors are equal, and false otherwise
Since 1.0freeSince 1.0get_Since 1.0get_Creates a Graphene.Vec2 that contains the first and second components of the given Graphene.Vec3.
Since 1.0get_Creates a Graphene.Vec3 that contains the first two components of the given Graphene.Vec3, and the third component set to 0.
Since 1.0get_Converts a Graphene.Vec3 in a Graphene.Vec4 using 0.0 as the value for the fourth component of the resulting vector.
Since 1.0get_Converts a Graphene.Vec3 in a Graphene.Vec4 using 1.0 as the value for the fourth component of the resulting vector.
Since 1.0get_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
Since 1.0get_Since 1.0get_Since 1.0initInitializes 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
Since 1.0init_Initializes a Graphene.Vec3 with the values from an array.
an array of 3 floating point values
the initialized vector
Since 1.0init_Initializes a Graphene.Vec3 with the values of another Graphene.Vec3.
the initialized vector
Since 1.10interpolateSince 1.0lengthSince 1.0maxSince 1.0minSince 1.0multiplySince 1.2nearCompares 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
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_StaticallocStaticSince 1.0oneStaticSince 1.0x_Provides a constant pointer to a vector with three components with values set to (1, 0, 0).
StaticSince 1.0y_Provides a constant pointer to a vector with three components with values set to (0, 1, 0).
StaticSince 1.0z_Provides a constant pointer to a vector with three components with values set to (0, 0, 1).
StaticSince 1.0zero
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.