public void Dot() { initializeArrays(); Vector3Fallbacks.Dot(vec1, vec2, resultF); for (int i = 0; i < arrLength; i++) { float actual = vec1[i].Dot(vec2[i]); Assert.InRange(resultF[i], actual - float.Epsilon, actual + float.Epsilon); } }
public void Dot() { Assert.True(Sse.IsSupported); initializeArrays(); Vector3Fallbacks.Dot(vec1, vec2, resultF); Vector3Sse.Dot(vec1, vec2, actualF); for (int i = 0; i < arrLength; i++) { Assert.InRange(actualF[i], resultF[i] - float.Epsilon, resultF[i] + float.Epsilon); } }