# Struct Point

Describes a 2D-point.

```
[DataContract]
public struct Point : IEquatable<Point>
```

- Implements

- Inherited Members

## Constructors

### Point(int)

Constructs a point with X and Y set to the same value.

`public Point(int value)`

#### Parameters

`value`

intThe x and y coordinates in 2d-space.

### Point(int, int)

Constructs a point with X and Y from two values.

`public Point(int x, int y)`

#### Parameters

## Fields

### X

The x coordinate of this Point.

```
[DataMember]
public int X
```

#### Field Value

### Y

The y coordinate of this Point.

```
[DataMember]
public int Y
```

#### Field Value

## Properties

### Zero

Returns a Point with coordinates 0, 0.

`public static Point Zero { get; }`

#### Property Value

## Methods

### Deconstruct(out int, out int)

Deconstruction method for Point.

`public void Deconstruct(out int x, out int y)`

#### Parameters

### Equals(Point)

Compares whether current instance is equal to specified Point.

`public bool Equals(Point other)`

#### Parameters

#### Returns

- bool
`true`

if the instances are equal;`false`

otherwise.

### Equals(object)

Compares whether current instance is equal to specified object.

`public override bool Equals(object obj)`

#### Parameters

#### Returns

- bool
`true`

if the instances are equal;`false`

otherwise.

### GetHashCode()

Gets the hash code of this Point.

`public override int GetHashCode()`

#### Returns

### ToString()

`public override string ToString()`

#### Returns

### ToVector2()

Gets a Vector2 representation for this object.

`public Vector2 ToVector2()`

#### Returns

## Operators

### operator +(Point, Point)

Adds two points.

`public static Point operator +(Point value1, Point value2)`

#### Parameters

`value1`

PointSource Point on the left of the add sign.

`value2`

PointSource Point on the right of the add sign.

#### Returns

- Point
Sum of the points.

### operator /(Point, Point)

`public static Point operator /(Point source, Point divisor)`

#### Parameters

`source`

PointSource Point on the left of the div sign.

`divisor`

PointDivisor Point on the right of the div sign.

#### Returns

- Point
The result of dividing the points.

### operator ==(Point, Point)

Compares whether two Point instances are equal.

`public static bool operator ==(Point a, Point b)`

#### Parameters

`a`

PointPoint instance on the left of the equal sign.

`b`

PointPoint instance on the right of the equal sign.

#### Returns

- bool
`true`

if the instances are equal;`false`

otherwise.

### operator !=(Point, Point)

Compares whether two Point instances are not equal.

`public static bool operator !=(Point a, Point b)`

#### Parameters

`a`

PointPoint instance on the left of the not equal sign.

`b`

PointPoint instance on the right of the not equal sign.

#### Returns

- bool
`true`

if the instances are not equal;`false`

otherwise.

### operator *(Point, Point)

Multiplies the components of two points by each other.

`public static Point operator *(Point value1, Point value2)`

#### Parameters

`value1`

PointSource Point on the left of the mul sign.

`value2`

PointSource Point on the right of the mul sign.

#### Returns

- Point
Result of the multiplication.

### operator -(Point, Point)

`public static Point operator -(Point value1, Point value2)`

#### Parameters

`value1`

PointSource Point on the left of the sub sign.

`value2`

PointSource Point on the right of the sub sign.

#### Returns

- Point
Result of the subtraction.