Struct Matrix3d
Implements
Namespace: FpAssistantCore.General
Assembly: FpAssistantCoreScl.dll
Syntax
public struct Matrix3d
Constructors
View SourceMatrix3d(Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double)
Constructor that sets matrix's initial values
Declaration
public Matrix3d(double m11, double m12, double m13, double m14, double m21, double m22, double m23, double m24, double m31, double m32, double m33, double m34, double offsetX, double offsetY, double offsetZ, double m44)
Parameters
Type | Name | Description |
---|---|---|
System.Double | m11 | Value of the (1,1) field of the new matrix |
System.Double | m12 | Value of the (1,2) field of the new matrix |
System.Double | m13 | Value of the (1,3) field of the new matrix |
System.Double | m14 | Value of the (1,4) field of the new matrix |
System.Double | m21 | Value of the (2,1) field of the new matrix |
System.Double | m22 | Value of the (2,2) field of the new matrix |
System.Double | m23 | Value of the (2,3) field of the new matrix |
System.Double | m24 | Value of the (2,4) field of the new matrix |
System.Double | m31 | Value of the (3,1) field of the new matrix |
System.Double | m32 | Value of the (3,2) field of the new matrix |
System.Double | m33 | Value of the (3,3) field of the new matrix |
System.Double | m34 | Value of the (3,4) field of the new matrix |
System.Double | offsetX | Value of the X offset field of the new matrix |
System.Double | offsetY | Value of the Y offset field of the new matrix |
System.Double | offsetZ | Value of the Z offset field of the new matrix |
System.Double | m44 | Value of the (4,4) field of the new matrix. |
Properties
View SourceIsAffine
Determines whether the matrix is affine
Declaration
public readonly bool IsAffine { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsIdentity
Returns whether the matrix is identity
Declaration
public readonly bool IsIdentity { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
M11
Retrieves or sets (1,1) value of the matrix
Declaration
public double M11 { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
M12
Retrieves or sets (1,2) value of the matrix
Declaration
public double M12 { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
M13
Retrieves or sets (1,3) value of the matrix
Declaration
public double M13 { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
M14
Retrieves or sets (1,4) value of the matrix
Declaration
public double M14 { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
M21
Retrieves or sets (2,1) value of the matrix
Declaration
public double M21 { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
M22
Retrieves or sets (2,2) value of the matrix
Declaration
public double M22 { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
M23
Retrieves or sets (2,3) value of the matrix
Declaration
public double M23 { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
M24
Retrieves or sets (2,4) value of the matrix
Declaration
public double M24 { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
M31
Retrieves or sets (3,1) value of the matrix
Declaration
public double M31 { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
M32
Retrieves or sets (3,2) value of the matrix
Declaration
public double M32 { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
M33
Retrieves or sets (3,3) value of the matrix
Declaration
public double M33 { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
M34
Retrieves or sets (3,4) value of the matrix
Declaration
public double M34 { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
M44
Retrieves or sets (4,4) value of the matrix
Declaration
public double M44 { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
OffsetX
Retrieves or sets X offset of the matrix
Declaration
public double OffsetX { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
OffsetY
Retrieves or sets Y offset of the matrix
Declaration
public double OffsetY { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
OffsetZ
Retrieves or sets Z offset of the matrix
Declaration
public double OffsetZ { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
View SourceEquals(Matrix3d)
Declaration
public bool Equals(Matrix3d other)
Parameters
Type | Name | Description |
---|---|---|
Matrix3d | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Matrix3d, Matrix3d)
Declaration
public static bool Equals(Matrix3d matrix1, Matrix3d matrix2)
Parameters
Type | Name | Description |
---|---|---|
Matrix3d | matrix1 | |
Matrix3d | matrix2 |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
Equals - compares this Matrix3D with the passed in object
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to compare to "this" |
Returns
Type | Description |
---|---|
System.Boolean | bool - true if the object is an instance of Matrix3D and if it's equal to "this" |
GetHashCode()
Returns the HashCode for this Matrix3d
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | int - the HashCode for this Matrix3d |
Transform(Point3d)
Transforms the given Point3D by this matrix, projecting the result back into the W=1 plane
Declaration
public Point3d Transform(Point3d point)
Parameters
Type | Name | Description |
---|---|---|
Point3d | point | Point to transform |
Returns
Type | Description |
---|---|
Point3d |
Translate(Vector3d)
Appends translation transform to the current matrix
Declaration
public void Translate(Vector3d offset)
Parameters
Type | Name | Description |
---|---|---|
Vector3d | offset | Offset vector for transformation |
Operators
View SourceEquality(Matrix3d, Matrix3d)
Compares two Matrix3D instances for exact equality
Declaration
public static bool operator ==(Matrix3d matrix1, Matrix3d matrix2)
Parameters
Type | Name | Description |
---|---|---|
Matrix3d | matrix1 | The first Matrix3d to compare |
Matrix3d | matrix2 | The second Matrix3d to compare |
Returns
Type | Description |
---|---|
System.Boolean | bool - true if the two Matrix3d instances are exactly equal, false otherwise |
Inequality(Matrix3d, Matrix3d)
Compares two Matrix3D instances for exact inequality.
Declaration
public static bool operator !=(Matrix3d matrix1, Matrix3d matrix2)
Parameters
Type | Name | Description |
---|---|---|
Matrix3d | matrix1 | The first Matrix3d to compare |
Matrix3d | matrix2 | The second Matrix3d to compare |
Returns
Type | Description |
---|---|
System.Boolean | bool - true if the two Matrix3d instances are exactly unequal, false otherwise |