czm_equalsEpsilon
Compares left
and right
componentwise. Returns true
if they are within epsilon
and false
otherwise. The inputs
left
and right
can be float
s, vec2
s,
vec3
s, or vec4
s.
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);