Class Matrix3d
Last update: 09.03.2026Namespace: OpenTD
Assembly: OpenTD.dll
A 4x4 matrix.
[DataContract]
public class Matrix3d
Inheritance
Derived
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
Inverse()
public Matrix3d Inverse()
Returns
Invert()
public Matrix3d Invert()
Returns
PostMultBy(Matrix3d)
public Matrix3d PostMultBy(Matrix3d m)
Parameters
m Matrix3d
Returns
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
SetFrom(Matrix3d)
public Matrix3d SetFrom(Matrix3d m)
Parameters
m Matrix3d
Returns
SetOrigin(Point3d)
public Matrix3d SetOrigin(Point3d value)
Parameters
value Point3d
Returns
SetToIdentity(bool)
public Matrix3d SetToIdentity(bool noCheck = false)
Parameters
noCheck bool
Returns
SetToRotX(Dimensional<Angle>)
public Matrix3d SetToRotX(Dimensional<Angle> ang)
Parameters
ang Dimensional<Angle>
Returns
SetToRotY(Dimensional<Angle>)
public Matrix3d SetToRotY(Dimensional<Angle> ang)
Parameters
ang Dimensional<Angle>
Returns
SetToRotZ(Dimensional<Angle>)
public Matrix3d SetToRotZ(Dimensional<Angle> ang)
Parameters
ang Dimensional<Angle>
Returns
SetToRotation(Dimensional<Angle>, Vector3d, Point3d)
public Matrix3d SetToRotation(Dimensional<Angle> ang, Vector3d _axis, Point3d center)
Parameters
ang Dimensional<Angle>
_axis Vector3d
center Point3d
Returns
SetToZero(bool)
public Matrix3d SetToZero(bool noCheck = false)
Parameters
noCheck bool
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
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
operator *(Matrix3d, Point3d)
public static Point3d operator *(Matrix3d m, Point3d p)
Parameters
m Matrix3d
p Point3d
Returns
operator *(Matrix3d, Matrix3d)
public static Matrix3d operator *(Matrix3d a, Matrix3d b)
Parameters
a Matrix3d
b Matrix3d