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

# Class Matrix3d

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

A 4x4 matrix.

```csharp theme={null}
[MessagePackObject(true)]
public class Matrix3d
```

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[Matrix3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Matrix3d.md)

#### Derived

[UCS](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.UCS.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

### Matrix3d()

```csharp theme={null}
public Matrix3d()
```

### Matrix3d(Matrix3d)

```csharp theme={null}
public Matrix3d(Matrix3d x)
```

#### Parameters

`x` [Matrix3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Matrix3d.md)

## Properties

### entry

```csharp theme={null}
public double[][] entry { get; set; }
```

#### Property Value

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

## Methods

### GetCoordSystem(Point3d, Vector3d, Vector3d, Vector3d)

```csharp theme={null}
public void GetCoordSystem(Point3d origin, Vector3d x, Vector3d y, Vector3d z)
```

#### Parameters

`origin` [Point3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Point3d.md)

`x` [Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Vector3d.md)

`y` [Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Vector3d.md)

`z` [Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Vector3d.md)

### GetOrigin()

```csharp theme={null}
public Point3d GetOrigin()
```

#### Returns

[Point3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Point3d.md)

### Inverse()

```csharp theme={null}
public Matrix3d Inverse()
```

#### Returns

[Matrix3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Matrix3d.md)

### Invert()

```csharp theme={null}
public Matrix3d Invert()
```

#### Returns

[Matrix3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Matrix3d.md)

### PostMultBy(Matrix3d)

```csharp theme={null}
public Matrix3d PostMultBy(Matrix3d m)
```

#### Parameters

`m` [Matrix3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Matrix3d.md)

#### Returns

[Matrix3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Matrix3d.md)

### SetCoordSystem(Point3d, Vector3d, Vector3d, Vector3d)

```csharp theme={null}
public Matrix3d SetCoordSystem(Point3d origin, Vector3d x, Vector3d y, Vector3d z)
```

#### Parameters

`origin` [Point3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Point3d.md)

`x` [Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Vector3d.md)

`y` [Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Vector3d.md)

`z` [Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Vector3d.md)

#### Returns

[Matrix3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Matrix3d.md)

### SetFrom(Matrix3d)

```csharp theme={null}
public Matrix3d SetFrom(Matrix3d m)
```

#### Parameters

`m` [Matrix3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Matrix3d.md)

#### Returns

[Matrix3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Matrix3d.md)

### SetOrigin(Point3d)

```csharp theme={null}
public Matrix3d SetOrigin(Point3d value)
```

#### Parameters

`value` [Point3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Point3d.md)

#### Returns

[Matrix3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Matrix3d.md)

### SetToIdentity(bool)

```csharp theme={null}
public Matrix3d SetToIdentity(bool noCheck = false)
```

#### Parameters

`noCheck` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

#### Returns

[Matrix3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Matrix3d.md)

### SetToRotX(Dimensional\<Angle>)

```csharp theme={null}
public Matrix3d SetToRotX(Dimensional<Angle> ang)
```

#### Parameters

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

#### Returns

[Matrix3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Matrix3d.md)

### SetToRotY(Dimensional\<Angle>)

```csharp theme={null}
public Matrix3d SetToRotY(Dimensional<Angle> ang)
```

#### Parameters

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

#### Returns

[Matrix3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Matrix3d.md)

### SetToRotZ(Dimensional\<Angle>)

```csharp theme={null}
public Matrix3d SetToRotZ(Dimensional<Angle> ang)
```

#### Parameters

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

#### Returns

[Matrix3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Matrix3d.md)

### SetToRotation(Dimensional\<Angle>, Vector3d, Point3d)

```csharp theme={null}
public Matrix3d SetToRotation(Dimensional<Angle> ang, Vector3d _axis, Point3d center)
```

#### Parameters

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

`_axis` [Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Vector3d.md)

`center` [Point3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Point3d.md)

#### Returns

[Matrix3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Matrix3d.md)

### SetToZero(bool)

```csharp theme={null}
public Matrix3d SetToZero(bool noCheck = false)
```

#### Parameters

`noCheck` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

#### Returns

[Matrix3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Matrix3d.md)

### ToString()

Returns a string that represents the current object.

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

#### Returns

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

A string that represents the current object.

## Operators

### operator \*(Matrix3d, Vector3d)

```csharp theme={null}
public static Vector3d operator *(Matrix3d m, Vector3d v)
```

#### Parameters

`m` [Matrix3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Matrix3d.md)

`v` [Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Vector3d.md)

#### Returns

[Vector3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Vector3d.md)

### operator \*(Matrix3d, Point3d)

```csharp theme={null}
public static Point3d operator *(Matrix3d m, Point3d p)
```

#### Parameters

`m` [Matrix3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Matrix3d.md)

`p` [Point3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Point3d.md)

#### Returns

[Point3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Point3d.md)

### operator \*(Matrix3d, Matrix3d)

```csharp theme={null}
public static Matrix3d operator *(Matrix3d a, Matrix3d b)
```

#### Parameters

`a` [Matrix3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Matrix3d.md)

`b` [Matrix3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Matrix3d.md)

#### Returns

[Matrix3d](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Matrix3d.md)
