Skip to main content

OpenTD reference 2026 R1

Class Matrix3d

Last update: 09.03.2026

Namespace: OpenTD
Assembly: OpenTD.dll

A 4x4 matrix.

[DataContract]
public class Matrix3d

Inheritance

object ← Matrix3d

Derived

UCS

Inherited Members

object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()

Constructors

Matrix3d()

public Matrix3d()

Matrix3d(Matrix3d)

public Matrix3d(Matrix3d x)

Parameters

x Matrix3d

Properties

entry

[DataMember]
public double[][] entry { get; set; }

Property Value

double[][]

Methods

GetCoordSystem(Point3d, Vector3d, Vector3d, Vector3d)

public void GetCoordSystem(Point3d origin, Vector3d x, Vector3d y, Vector3d z)

Parameters

origin Point3d

x Vector3d

y Vector3d

z Vector3d

GetOrigin()

public Point3d GetOrigin()

Returns

Point3d

Inverse()

public Matrix3d Inverse()

Returns

Matrix3d

Invert()

public Matrix3d Invert()

Returns

Matrix3d

PostMultBy(Matrix3d)

public Matrix3d PostMultBy(Matrix3d m)

Parameters

m Matrix3d

Returns

Matrix3d

SetCoordSystem(Point3d, Vector3d, Vector3d, Vector3d)

public Matrix3d SetCoordSystem(Point3d origin, Vector3d x, Vector3d y, Vector3d z)

Parameters

origin Point3d

x Vector3d

y Vector3d

z Vector3d

Returns

Matrix3d

SetFrom(Matrix3d)

public Matrix3d SetFrom(Matrix3d m)

Parameters

m Matrix3d

Returns

Matrix3d

SetOrigin(Point3d)

public Matrix3d SetOrigin(Point3d value)

Parameters

value Point3d

Returns

Matrix3d

SetToIdentity(bool)

public Matrix3d SetToIdentity(bool noCheck = false)

Parameters

noCheck bool

Returns

Matrix3d

SetToRotX(Dimensional<Angle>)

public Matrix3d SetToRotX(Dimensional<Angle> ang)

Parameters

ang Dimensional<Angle>

Returns

Matrix3d

SetToRotY(Dimensional<Angle>)

public Matrix3d SetToRotY(Dimensional<Angle> ang)

Parameters

ang Dimensional<Angle>

Returns

Matrix3d

SetToRotZ(Dimensional<Angle>)

public Matrix3d SetToRotZ(Dimensional<Angle> ang)

Parameters

ang Dimensional<Angle>

Returns

Matrix3d

SetToRotation(Dimensional<Angle>, Vector3d, Point3d)

public Matrix3d SetToRotation(Dimensional<Angle> ang, Vector3d _axis, Point3d center)

Parameters

ang Dimensional<Angle>

_axis Vector3d

center Point3d

Returns

Matrix3d

SetToZero(bool)

public Matrix3d SetToZero(bool noCheck = false)

Parameters

noCheck bool

Returns

Matrix3d

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Operators

operator *(Matrix3d, Vector3d)

public static Vector3d operator *(Matrix3d m, Vector3d v)

Parameters

m Matrix3d

v Vector3d

Returns

Vector3d

operator *(Matrix3d, Point3d)

public static Point3d operator *(Matrix3d m, Point3d p)

Parameters

m Matrix3d

p Point3d

Returns

Point3d

operator *(Matrix3d, Matrix3d)

public static Matrix3d operator *(Matrix3d a, Matrix3d b)

Parameters

a Matrix3d

b Matrix3d

Returns

Matrix3d

Connect with Ansys