    

 ## On this page

  

 

 # Struct Dimensional&lt;T\\&gt;

 Last update: 09.03.2026 

Namespace: [OpenTD.Dimension](OpenTD.Dimension.md)  
Assembly: OpenTD.dll

Dimensionals represent dimensional quantities, like endTime or initialTemperature. When set or get, dimensional values reflect the current Units.WorkingUnits system. For example, if you set WorkingUnits.temp to C, then set a Dimensional{Temperature} to 0, then set WorkingUnits.temp to F, the Dimensional would now return 32. Dimensionals implicitly convert to/from doubles.

```csharp
[DataContract]
public struct Dimensional<T> where T : IDimension, new()

```

#### Type Parameters

`T`

## Inherited Members

[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring), [object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)), [object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)), [object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode), [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype)

## Constructors

### Dimensional(double)

```csharp
public Dimensional(double x)

```

#### Parameters

`x` [double](https://learn.microsoft.com/dotnet/api/system.double)

### Dimensional(double, UnitsData)

```csharp
public Dimensional(double x, UnitsData inputUnits)

```

#### Parameters

`x` [double](https://learn.microsoft.com/dotnet/api/system.double)

`inputUnits` [UnitsData](OpenTD.UnitsData.md)

## Methods

### GetValueSI()

```csharp
public double GetValueSI()

```

#### Returns

[double](https://learn.microsoft.com/dotnet/api/system.double)

### ToString()

Returns the fully qualified type name of this instance.

```csharp
public override string ToString()

```

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

The fully qualified type name.

## Operators

### implicit operator Dimensional&lt;T&gt;(double)

```csharp
public static implicit operator Dimensional<T>(double x)

```

#### Parameters

`x` [double](https://learn.microsoft.com/dotnet/api/system.double)

#### Returns

[Dimensional](OpenTD.Dimension.Dimensional-1.md)&lt;T&gt;

### implicit operator double(Dimensional&lt;T&gt;)

```csharp
public static implicit operator double(Dimensional<T> x)

```

#### Parameters

`x` [Dimensional](OpenTD.Dimension.Dimensional-1.md)&lt;T&gt;

#### Returns

[double](https://learn.microsoft.com/dotnet/api/system.double)