tbf it’s only approved for float and double today so that’s far more likely
tbf it’s only approved for float and double today so that’s far more likely
also imo a user wanting to use a vector type with a scalar type that fundamentally cannot represent the vector rules is kind of down to them hahaThe issue is in how it restricts our ability to version the types over time. Can we successful expose an API like
Hypot or DegreesToRadians 5 years after it ships, for examplebyte should just be a cast to float, get the sine, then cast back to bytethen cast back to bytei did not initially gather that from what you said here
Sin(this Vector3<T>) where T : IFloatingPoint<T>static T Vector3.Sin<T>() where T : INumber<T>, IFloatingPoint<T>?HypotDegreesToRadiansbyteSin(this Vector3<T>) where T : IFloatingPoint<T>static T Vector3.Sin<T>() where T : INumber<T>, IFloatingPoint<T>static class Vector3 {
static Vector3<T> Sin<T>(Vector3<T> vec) where T : INumber<T>, IFloatingPoint<T> {}
}