c# vector class doubles code example Example: define a vector c# Vector vector1 = new Vector(20, 30, 40);