using System; using System.Drawing; class Program { static void Main(string[] args) { Point p1 = new Point(2, 3); Point p2 = new Point(5, 7); double distance = Math.Sqrt(Math.Pow(p1.X - p2.X, 2) + Math.Pow(p1.Y - p2.Y, 2)); Console.WriteLine("Distance between {0} and {1} is {2}", p1, p2, distance); } }
using System; using System.Numerics; class Program { static void Main(string[] args) { Vector3 v1 = new Vector3(2, 3, 4); Vector3 v2 = new Vector3(5, 6, 7); Vector3 crossProduct = Vector3.Cross(v1, v2); Console.WriteLine("Cross product of {0} and {1} is {2}", v1, v2, crossProduct); } }This example uses the `Vector3` class from the `System.Numerics` namespace, which is used to represent a vector in a 3D space. It calculates the cross product of two vectors using the `Cross` method of the `Vector3` class. In conclusion, the System Coordinate package is a part of the C# standard library and is included in the System.Drawing and System.Numerics namespaces. It provides various methods and classes to work with the coordinates and vectors in 2D or 3D space.