// Find length of the vector
fLengthVal = vec2Values.Length();
- DALI_CHECK_FAIL( fLengthVal != fVecLength , "Length Api failed to return the length of the vector.");
+ DALI_CHECK_FAIL( !Equals(fLengthVal, fVecLength, VECTOR2_MATH_EPSILON ), "Length Api failed to return the length of the vector.");
// Calculated Normalized Value.
vec2NormalizedVal.x = vec2Values.x/fLengthVal;
// Find length of the vector
fLengthVal = vec3Values.Length();
- DALI_CHECK_FAIL( fLengthVal != fVecLength , "Length Api failed to return the length of the vector.");
-
+ DALI_CHECK_FAIL( !Equals( fLengthVal, fVecLength, VECTOR3_MATH_EPSILON ), "Length Api failed to return the length of the vector.");
+
// Calculated Normalized Value.
vec3NormalizedVal.x = vec3Values.x/fLengthVal;
vec3NormalizedVal.y = vec3Values.y/fLengthVal;
// Find length of the vector
fLengthVal = vec2Values.Length();
- DALI_CHECK_FAIL( fLengthVal != fVecLength , "Length Api failed to return the length of the vector.");
+ DALI_CHECK_FAIL( !Equals(fLengthVal, fVecLength, VECTOR2_MATH_EPSILON ) , "Length Api failed to return the length of the vector.");
// Calculated Normalized Value.
vec2NormalizedVal.x = vec2Values.x/fLengthVal;
// Find length of the vector
fLengthVal = vec3Values.Length();
- DALI_CHECK_FAIL( fLengthVal != fVecLength , "Length Api failed to return the length of the vector.");
+ DALI_CHECK_FAIL( !Equals( fLengthVal, fVecLength, VECTOR3_MATH_EPSILON ), "Length Api failed to return the length of the vector.");
// Calculated Normalized Value.
vec3NormalizedVal.x = vec3Values.x/fLengthVal;