Skip to main content

OpenTD .NET4 reference 2025 R2

OpenTD.Dimension.DimensionalIfPositive< T > Struct Template Reference

Last update: 16.07.2025

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

Inheritance diagram for OpenTD.Dimension.DimensionalIfPositive< T >:
OpenTD.Dimension.IGetSetSI

Public Member Functions

 DimensionalIfPositive (double x)
 
double GetValueSI ()
 
override string ToString ()
 
double IGetSetSI. GetValueSI ()
 
void IGetSetSI. SetValueSI (double value)
 

Static Public Member Functions

static implicit operator DimensionalIfPositive< T > (double x)
 
static implicit operator double (DimensionalIfPositive< T > x)
 

Detailed Description

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

See also
OpenTD.Dimension.Dimensional<T>
Type Constraints
T :IDimension 
T :new() 

Member Function Documentation

◆ DimensionalIfPositive()

OpenTD.Dimension.DimensionalIfPositive< T >.DimensionalIfPositive ( double x)
inline

◆ GetValueSI() [1/2]

double OpenTD.Dimension.DimensionalIfPositive< T >.GetValueSI ( )
inline

◆ GetValueSI() [2/2]

double IGetSetSI. OpenTD.Dimension.DimensionalIfPositive< T >.GetValueSI ( )
inline

◆ operator DimensionalIfPositive< T >()

static implicit OpenTD.Dimension.DimensionalIfPositive< T >.operator DimensionalIfPositive< T > ( double x)
inlinestatic

◆ operator double()

static implicit OpenTD.Dimension.DimensionalIfPositive< T >.operator double ( DimensionalIfPositive< T > x)
inlinestatic

◆ SetValueSI()

void IGetSetSI. OpenTD.Dimension.DimensionalIfPositive< T >.SetValueSI ( double value)
inline

◆ ToString()

override string OpenTD.Dimension.DimensionalIfPositive< T >.ToString ( )
inline

The documentation for this struct was generated from the following file:
  • C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/TDDEV_ALPHA/buildXX/OpenTD/Dimension/Dimensional.cs

Connect with Ansys