float2 point1 = new float2(0, 0); float2 point2 = new float2(3, 4); float distance = MathF.Sqrt(MathF.Pow(point2.x - point1.x, 2) + MathF.Pow(point2.y - point1.y, 2));
float2 vector = new float2(3, 4); float2 normalized = vector / vector.Length();
float2 from = new float2(0, 0); float2 to = new float2(10, 10); float2 lerped = MathHelper.Lerp(from, to, 0.5f);The float2 type is part of the System.Numerics package library in C#.