vector3_equal_with_epsilon


Description:

public Bool vector3_equal_with_epsilon (float vector0, float vector1, float 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)

Parameters:

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.


Namespace: Cogl
Package: doc