> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenTD.Point2d Class Reference

A mathematical point in 2D.

## Public Member Functions

| Type | Name |
| - | - |
| | [Point2d](#a1ac673a2a7b84f121f30d694ba8f8c27) () Initializes a new instance of the [Point2d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_point2d.md) class. |
| | [Point2d](#a5077b527aa18cf52e1c83e64ac5b3958) ([Point2d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_point2d.md) p) Copy constructor. |
| | [Point2d](#a2055045e396399ba45e9e8a293b9bc80) (double x, double y) Initializes a new instance of the [Point2d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_point2d.md) class. |
| override bool | [Equals](#a434924aece28de4e74fe6511c75950fd) (object obj) |
| override int | [GetHashCode](#afe5eb1390dae641dae6335108680a33e) () |
| override string | [ToString](#a057d65111ce40eb340f8ce41c6d2be20) () |

## Static Public Member Functions

| Type | Name |
| - | - |
| static bool | [operator==](#ad20f0a1efa572129626248d034907d1d) ([Point2d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_point2d.md) first, [Point2d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_point2d.md) second) |
| static bool | [operator!=](#acc85181a038f67bc6f32c03442205bfe) ([Point2d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_point2d.md) first, [Point2d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_point2d.md) second) |
| static [Point2d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_point2d.md) | [operator+](#a49936a755b0fef22627d24213a9c9242) ([Point2d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_point2d.md) firstOperand, [Point2d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_point2d.md) secondOperand) |
| static [Point2d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_point2d.md) | [operator+](#ad8bfe4fec39c7af169addbc901bc6928) ([Point2d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_point2d.md) firstOperand, [Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) secondOperand) |
| static [Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) | [operator-](#adcdecda2fded72ddbe8cc933841ec190) ([Point2d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_point2d.md) a, [Point2d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_point2d.md) b) |

## Properties

| Type | Name |
| - | - |
| Dimensional\< [ModelLength](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_dimension_1_1_model_length.md) > | [X](#a765339c9ecf463fb216ce7ed13ef8f3c)`[get, set]` |
| Dimensional\< [ModelLength](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_dimension_1_1_model_length.md) > | [Y](#ae7bdbabbb9e95044ef3acffde22f7312)`[get, set]` |

## Detailed Description

A mathematical point in 2D.

## Constructor & Destructor Documentation

### Point2d() \[1/3]

```csharp theme={null}
OpenTD.Point2d.Point2d()
```

`inline`

Initializes a new instance of the [Point2d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_point2d.md) class.

### Point2d() \[2/3]

```csharp theme={null}
OpenTD.Point2d.Point2d(Point2d p)
```

`inline`

Copy constructor.

**Parameters**

| Name | Description |
| - | - |
| p | The [Point2d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_point2d.md) to copy from. |

### Point2d() \[3/3]

```csharp theme={null}
OpenTD.Point2d.Point2d(
    double x,
    double y
)
```

`inline`

Initializes a new instance of the [Point2d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_point2d.md) class.

**Parameters**

| Name | Description |
| - | - |
| x | The x value. |
| y | The y value. |

## Member Function Documentation

### Equals()

```csharp theme={null}
override bool OpenTD.Point2d.Equals(object obj)
```

`inline`

### GetHashCode()

```csharp theme={null}
override int OpenTD.Point2d.GetHashCode()
```

`inline`

### operator!=()

```csharp theme={null}
static bool OpenTD.Point2d.operator!=(
    Point2d first,
    Point2d second
)
```

`inline` `static`

### operator+() \[1/2]

```csharp theme={null}
static Point2d OpenTD.Point2d.operator+(
    Point2d firstOperand,
    Point2d secondOperand
)
```

`inline` `static`

### operator+() \[2/2]

```csharp theme={null}
static Point2d OpenTD.Point2d.operator+(
    Point2d firstOperand,
    Vector3d secondOperand
)
```

`inline` `static`

### operator-()

```csharp theme={null}
static Vector3d OpenTD.Point2d.operator-(
    Point2d a,
    Point2d b
)
```

`inline` `static`

### operator==()

```csharp theme={null}
static bool OpenTD.Point2d.operator==(
    Point2d first,
    Point2d second
)
```

`inline` `static`

### ToString()

```csharp theme={null}
override string OpenTD.Point2d.ToString()
```

`inline`

## Property Documentation

### X

```csharp theme={null}
Dimensional< ModelLength > OpenTD.Point2d.X
```

`get` `set`

### Y

```csharp theme={null}
Dimensional< ModelLength > OpenTD.Point2d.Y
```

`get` `set`

The documentation for this class was generated from the following file:

* C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/TDDEV\_ALPHA/buildXX/OpenTD/**Point2d.cs**
