    

 ## On this page

  

 

 # Class Transformation

 Last update: 09.03.2026 

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

A 3D transformation, described as translation plus up to 3 sequential rotations.

```csharp
[MessagePackObject(true)]
public class Transformation

```

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [Transformation](OpenTD.Transformation.md)

## Inherited Members

[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.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode), [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype), [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone), [object.ReferenceEquals(object?, object?)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Constructors

### Transformation()

```csharp
public Transformation()

```

### Transformation(Transformation)

```csharp
public Transformation(Transformation x)

```

#### Parameters

`x` [Transformation](OpenTD.Transformation.md)

## Fields

### Axis1

```csharp
public int Axis1

```

#### Field Value

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

### Axis2

```csharp
public int Axis2

```

#### Field Value

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

### Axis3

```csharp
public int Axis3

```

#### Field Value

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

### Rot1

```csharp
public Dimensional<Angle> Rot1

```

#### Field Value

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

### Rot2

```csharp
public Dimensional<Angle> Rot2

```

#### Field Value

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

### Rot3

```csharp
public Dimensional<Angle> Rot3

```

#### Field Value

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

### Tx

```csharp
public Dimensional<ModelLength> Tx

```

#### Field Value

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

### Ty

```csharp
public Dimensional<ModelLength> Ty

```

#### Field Value

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

### Tz

```csharp
public Dimensional<ModelLength> Tz

```

#### Field Value

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

## Properties

### Rot1Exp

```csharp
public ExpressionData Rot1Exp { get; set; }

```

#### Property Value

[ExpressionData](OpenTD.ExpressionData.md)

### Rot2Exp

```csharp
public ExpressionData Rot2Exp { get; set; }

```

#### Property Value

[ExpressionData](OpenTD.ExpressionData.md)

### Rot3Exp

```csharp
public ExpressionData Rot3Exp { get; set; }

```

#### Property Value

[ExpressionData](OpenTD.ExpressionData.md)

### TxExp

```csharp
public ExpressionData TxExp { get; set; }

```

#### Property Value

[ExpressionData](OpenTD.ExpressionData.md)

### TyExp

```csharp
public ExpressionData TyExp { get; set; }

```

#### Property Value

[ExpressionData](OpenTD.ExpressionData.md)

### TzExp

```csharp
public ExpressionData TzExp { get; set; }

```

#### Property Value

[ExpressionData](OpenTD.ExpressionData.md)