> ## 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.Vector3d Class Reference

A 3D vector. Note that coordinates are dimensional and reflect the current [OpenTD](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/namespace_open_t_d) WorkingUnits [ModelLength](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_dimension_1_1_model_length.md).

## Public Member Functions

| Type | Name |
| - | - |
| | [Vector3d](#af5a7aae045d94b846f6ff6069d76493b) () Initializes a new instance of the [Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) class. |
| | [Vector3d](#aa862007c6d02243b21eb683cec9cd30c) (double x, double y, double z) Initializes a new instance of the [Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) class. |
| | [Vector3d](#a492fcef2c249e05d140ed9b1a916e828) ([Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) v) Initializes a new instance of the [Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) class. Copy constructor. |
| | [Vector3d](#a7bbd824a5aed92a0a4b5fc33c10dd141) ([DimensionlessVector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_dimensionless_vector3d.md) v) |
| override bool | [Equals](#a5cb50dc69ef99daccd66c538a29dfcb1) (object obj) |
| override int | [GetHashCode](#a5620cd2889afcfef77c97d7e5982e8ac) () |
| override string | [ToString](#a11956eced31863c4d317ced83a2e392f) () |
| void | [set](#a07b8ffdc3bd88b3f00aa46f3699690a5) (double v1, double v2, double v3) |
| double | [DotProduct](#a0b8fb3aa5555971fb9d988bcb7710fae) ([Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) v) |
| [Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) | [CrossProduct](#a738bef4470f8b21c94857fbf735d24ed) ([Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) vv) |
| double | [Mag](#a1853cd71d7ddcdedb1f199a3b8506141) () |
| double | [Length](#a0fcbf605e00bbe5de9118b18d88d7638) () |
| double | [LengthSqrd](#a4f8749cfe69dce0be6a1c7a5fe2d2f0d) () |
| void | [Normalize](#a6b228c7db5c93ea434d6ab064946ba2f) () |
| [Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) | [Normal](#a3bb1bbc3d5816c70a6f2ec317a39db59) () |

## Static Public Member Functions

| Type | Name |
| - | - |
| static bool | [operator==](#acdd9d9a79871c4d8f0a258acd539a638) ([Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) first, [Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) second) |
| static bool | [operator!=](#a863c7c9002df47e8020c1d45c3fd88ef) ([Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) first, [Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) second) |
| static [Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) | [operator+](#a3f834332327202b4cd1c52ee7ab7ebb7) ([Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) a, [Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) b) |
| static [Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) | [operator-](#a01a775bdbf49af8a25d3f984bf9ce881) ([Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) a, [Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) b) |
| static [Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) | [operator-](#af9955e9064a8a9630cb06a3f968b5f3d) ([Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) a) |
| static double | [operator\*](#aab7a4e76fc37ada706514406a3dc7cdc) ([Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) a, [Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) b) |
| static [Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) | [operator\*](#ac22ebdc722cbebba21eb639a24a99b6d) (double s, [Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) v) |
| static [Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) | [operator\*](#ab1d0f185e673eb90706e7f69671cdcad) ([Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) v, double s) |
| static [Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) | [operator%](#ac411baa29b7a3438193da82700077239) ([Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) u, [Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) v) |
| static [Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) | [operator/](#adec16ac714095dbfb8903f15faf34303) ([Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_vector3d.md) v, double s) |

## 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](#a8062bcb0b2f85b6691db9cfd82b45988)`[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](#a80904ca0d46a51cf3b3756697ec59217)`[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) > | [Z](#aacbab103210973f84f75db989b23e451)`[get, set]` |

## Detailed Description

A 3D vector. Note that coordinates are dimensional and reflect the current [OpenTD](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/namespace_open_t_d) WorkingUnits [ModelLength](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_dimension_1_1_model_length.md).

## Constructor & Destructor Documentation

### Vector3d() \[1/4]

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

`inline`

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

### Vector3d() \[2/4]

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

`inline`

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

**Parameters**

| Name | Description |
| - | - |
| x | The x coordinate. |
| y | The y coordinate. |
| z | The z coordinate. |

### Vector3d() \[3/4]

```csharp theme={null}
OpenTD.Vector3d.Vector3d(Vector3d v)
```

`inline`

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

### Vector3d() \[4/4]

```csharp theme={null}
OpenTD.Vector3d.Vector3d(DimensionlessVector3d v)
```

`inline`

## Member Function Documentation

### CrossProduct()

```csharp theme={null}
Vector3d OpenTD.Vector3d.CrossProduct(Vector3d vv)
```

`inline`

### DotProduct()

```csharp theme={null}
double OpenTD.Vector3d.DotProduct(Vector3d v)
```

`inline`

### Equals()

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

`inline`

### GetHashCode()

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

`inline`

### Length()

```csharp theme={null}
double OpenTD.Vector3d.Length()
```

`inline`

### LengthSqrd()

```csharp theme={null}
double OpenTD.Vector3d.LengthSqrd()
```

`inline`

### Mag()

```csharp theme={null}
double OpenTD.Vector3d.Mag()
```

`inline`

### Normal()

```csharp theme={null}
Vector3d OpenTD.Vector3d.Normal()
```

`inline`

### Normalize()

```csharp theme={null}
void OpenTD.Vector3d.Normalize()
```

`inline`

### operator!=()

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

`inline` `static`

### operator%()

```csharp theme={null}
static Vector3d OpenTD.Vector3d.operator%(
    Vector3d u,
    Vector3d v
)
```

`inline` `static`

### operator\*() \[1/3]

```csharp theme={null}
static Vector3d OpenTD.Vector3d.operator*(
    double s,
    Vector3d v
)
```

`inline` `static`

### operator\*() \[2/3]

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

`inline` `static`

### operator\*() \[3/3]

```csharp theme={null}
static Vector3d OpenTD.Vector3d.operator*(
    Vector3d v,
    double s
)
```

`inline` `static`

### operator+()

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

`inline` `static`

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

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

`inline` `static`

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

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

`inline` `static`

### operator/()

```csharp theme={null}
static Vector3d OpenTD.Vector3d.operator/(
    Vector3d v,
    double s
)
```

`inline` `static`

### operator==()

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

`inline` `static`

### set()

```csharp theme={null}
void OpenTD.Vector3d.set(
    double v1,
    double v2,
    double v3
)
```

`inline`

### ToString()

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

`inline`

## Property Documentation

### X

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

`get` `set`

### Y

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

`get` `set`

### Z

```csharp theme={null}
Dimensional< ModelLength > OpenTD.Vector3d.Z
```

`get` `set`

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

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