Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# standard library 3D int vector

Tags:

c#

.net-core

Does the C# standard library contain any type representing a 3D int Vector? I know of System.Numerics.Vector3 which is a 3D float Vector, but don't know of any int version.

I'm using .NET Core 3 with C# 8.0

like image 202
blenderfreaky Avatar asked May 25 '26 12:05

blenderfreaky


1 Answers

As per the discussion linked to your question goes, I'd recommend that you use Math.NET Numerics or similar 3rd party libraries for this.

The built-in alternatives seems to be either

  1. Not type-safe, or
  2. Subject to variations due to the executing platform

Hence, Math.Net Numerics is probably your best option as of now.

like image 200
conciliator Avatar answered May 27 '26 03:05

conciliator