Vector4 position = new Vector4(1.0f, 2.0f, 3.0f, 1.0f);
Vector4 color = new Vector4(1.0f, 0.0f, 0.0f, 1.0f); // red
Vector4 position = new Vector4(1.0f, 2.0f, 3.0f, 1.0f); Matrix4x4 worldMatrix = Matrix4x4.CreateTranslation(1.0f, 0.0f, 0.0f); // Transform the position using the world matrix Vector4 transformedPosition = Vector4.Transform(position, worldMatrix);The System Vector4 class is part of the .NET Core package library.