> ## 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.

# Struct DimensionalIfPositive<T>

Namespace: [OpenTD.Dimension](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Dimension)\
Assembly: OpenTD.dll

Works like a dimensional, but only for positive values. Negative values
act like doubles.

```csharp theme={null}
[DataContract]
public struct DimensionalIfPositive<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

### DimensionalIfPositive(double)

```csharp theme={null}
public DimensionalIfPositive(double x)
```

#### Parameters

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

## Methods

### GetValueSI()

```csharp theme={null}
public double GetValueSI()
```

#### Returns

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

### ToString()

Returns the fully qualified type name of this instance.

```csharp theme={null}
public override string ToString()
```

#### Returns

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

The fully qualified type name.

## Operators

### implicit operator DimensionalIfPositive\<T>(double)

```csharp theme={null}
public static implicit operator DimensionalIfPositive<T>(double x)
```

#### Parameters

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

#### Returns

[DimensionalIfPositive](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Dimension.DimensionalIfPositive-1.md)\<T>

### implicit operator double(DimensionalIfPositive\<T>)

```csharp theme={null}
public static implicit operator double(DimensionalIfPositive<T> x)
```

#### Parameters

`x` [DimensionalIfPositive](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Dimension.DimensionalIfPositive-1.md)\<T>

#### Returns

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

## See Also

[Dimensional](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Dimension.Dimensional-1.md)\<T>
