doesn't Span have a really efficient equality implementation already?
doesn't Span have a really efficient equality implementation already?
// USE AN EPSILON DAMNIT!
BitCast may be fast, but you're introducing a comparison, a function call, etc.// USE AN EPSILON DAMNIT!BitCastif (Vector128.IsHardwareAccelerated && typeof(T) == typeof(float))
{
return Unsafe.BitCast<Vector3<T>, Vector3>(this).AsVector128().Equals(Unsafe.BitCast<Vector3<T>, Vector3>(other).AsVector128());
}