not sure I get this - if I have a separate point type what does - return?
not sure I get this - if I have a separate point type what does - return?
Point2<T>.Distance returns a Point2<T>, which represents the per dimension steppingVector2<T> to get it in terms of length (at the same total cost)Vector2/3/4<T> from integer typesHalf a lot. If you choose the type you likely know of the trade offs and putting further barriers in place just to confirm you actually know what you're doing is unecessary. Similar for VectorN<byte> etc.Box2D vs RectangleVector3<T> including integers to avoid extra overloads in bindings?extending the BCL maths to vectors here(this is happening in .NET 9, it's already been partially started in an OOB in 8)
TensorPrimitives, which is math APIs over ROSpan<T> (so TensorPrimitives.Log(ROSpan<float> x, Span<float> destination))where T : IFloatingPointIeee754<T>Vector128.Log(Vector128<float> x) and friends (+ double overloads)floating-point typesyeah that's sort of what I ment
Cos(int) doesn't make sense