Cogl.vector3_equal_with_epsilon
function vector3_equal_with_epsilon(vector0: Number(gfloat), vector1: Number(gfloat), epsilon: Number(gfloat)): Cogl.Bool {
// Gjs wrapper for cogl_vector3_equal_with_epsilon()
}
Compares the components of two vectors using the given epsilon and returns TRUE if they are the same, using an internal epsilon for comparing the floats.
Each component is compared against the epsilon value in this way: |[ if (fabsf (vector0->x - vector1->x) < epsilon) ]|
Since 1.4
- vector0
The first 3 component vector you want to compare
- vector1
The second 3 component vector you want to compare
- epsilon
The allowable difference between components to still be considered equal
- Returns
TRUE if the vectors are equal else FALSE.