using System.Numerics; Vector3 vector = new Vector3(1.0f, 2.0f, 3.0f);
using System.Numerics; Vector3 vector1 = new Vector3(1.0f, 2.0f, 3.0f); Vector3 vector2 = new Vector3(4.0f, 5.0f, 6.0f); // Addition Vector3 result1 = vector1 + vector2; // Subtraction Vector3 result2 = vector1 - vector2; // Multiplication Vector3 result3 = vector1 * 2.0f; // Dot product float dotProduct = Vector3.Dot(vector1, vector2); // Cross product Vector3 crossProduct = Vector3.Cross(vector1, vector2);In the above example, we are performing basic Vector operations such as addition, subtraction, multiplication, dot product, and cross product using the C# Vector. Package Library: System.Numerics