czm_equalsEpsilon

czm_equalsEpsilon

Compares left and right componentwise. Returns true if they are within epsilon and false otherwise. The inputs left and right can be floats, vec2s, vec3s, or vec4s.

Parameters:
Name Type Description
{} left The first vector.
{} right The second vector.
epsilon float The epsilon to use for equality testing.
Returns:
bool true if the components are within epsilon and false otherwise.
Example
// GLSL declarations
bool czm_equalsEpsilon(float left, float right, float epsilon);
bool czm_equalsEpsilon(vec2 left, vec2 right, float epsilon);
bool czm_equalsEpsilon(vec3 left, vec3 right, float epsilon);
bool czm_equalsEpsilon(vec4 left, vec4 right, float epsilon);
Source: