Struct Matrix3d
Implements
Inherited Members
Namespace: FpAssistantCore.General
Assembly: FpAssistantCoreScl.dll
Syntax
public struct Matrix3d : IEquatable<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 |
|---|---|---|
| double | m11 | Value of the (1,1) field of the new matrix |
| double | m12 | Value of the (1,2) field of the new matrix |
| double | m13 | Value of the (1,3) field of the new matrix |
| double | m14 | Value of the (1,4) field of the new matrix |
| double | m21 | Value of the (2,1) field of the new matrix |
| double | m22 | Value of the (2,2) field of the new matrix |
| double | m23 | Value of the (2,3) field of the new matrix |
| double | m24 | Value of the (2,4) field of the new matrix |
| double | m31 | Value of the (3,1) field of the new matrix |
| double | m32 | Value of the (3,2) field of the new matrix |
| double | m33 | Value of the (3,3) field of the new matrix |
| double | m34 | Value of the (3,4) field of the new matrix |
| double | offsetX | Value of the X offset field of the new matrix |
| double | offsetY | Value of the Y offset field of the new matrix |
| double | offsetZ | Value of the Z offset field of the new matrix |
| double | m44 | Value of the (4,4) field of the new matrix. |
Properties
View SourceIsAffine
Determines whether the matrix is affine
Declaration
public bool IsAffine { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsIdentity
Returns whether the matrix is identity
Declaration
public bool IsIdentity { get; }
Property Value
| Type | Description |
|---|---|
| bool |
M11
Retrieves or sets (1,1) value of the matrix
Declaration
public double M11 { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
M12
Retrieves or sets (1,2) value of the matrix
Declaration
public double M12 { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
M13
Retrieves or sets (1,3) value of the matrix
Declaration
public double M13 { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
M14
Retrieves or sets (1,4) value of the matrix
Declaration
public double M14 { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
M21
Retrieves or sets (2,1) value of the matrix
Declaration
public double M21 { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
M22
Retrieves or sets (2,2) value of the matrix
Declaration
public double M22 { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
M23
Retrieves or sets (2,3) value of the matrix
Declaration
public double M23 { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
M24
Retrieves or sets (2,4) value of the matrix
Declaration
public double M24 { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
M31
Retrieves or sets (3,1) value of the matrix
Declaration
public double M31 { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
M32
Retrieves or sets (3,2) value of the matrix
Declaration
public double M32 { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
M33
Retrieves or sets (3,3) value of the matrix
Declaration
public double M33 { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
M34
Retrieves or sets (3,4) value of the matrix
Declaration
public double M34 { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
M44
Retrieves or sets (4,4) value of the matrix
Declaration
public double M44 { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
OffsetX
Retrieves or sets X offset of the matrix
Declaration
public double OffsetX { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
OffsetY
Retrieves or sets Y offset of the matrix
Declaration
public double OffsetY { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
OffsetZ
Retrieves or sets Z offset of the matrix
Declaration
public double OffsetZ { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Methods
View SourceEquals(Matrix3d)
Declaration
public bool Equals(Matrix3d other)
Parameters
| Type | Name | Description |
|---|---|---|
| Matrix3d | other |
Returns
| Type | Description |
|---|---|
| bool |
Equals(Matrix3d, Matrix3d)
Declaration
public static bool Equals(Matrix3d matrix1, Matrix3d matrix2)
Parameters
| Type | Name | Description |
|---|---|---|
| Matrix3d | matrix1 | |
| Matrix3d | matrix2 |
Returns
| Type | Description |
|---|---|
| bool |
Equals(object)
Equals - compares this Matrix3D with the passed in object
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare to "this" |
Returns
| Type | Description |
|---|---|
| bool | bool - true if the object is an instance of Matrix3D and if it's equal to "this" |
Overrides
View SourceGetHashCode()
Returns the HashCode for this Matrix3d
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | int - the HashCode for this Matrix3d |
Overrides
View SourceTransform(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 Sourceoperator ==(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 |
|---|---|
| bool | bool - true if the two Matrix3d instances are exactly equal, false otherwise |
operator !=(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 |
|---|---|
| bool | bool - true if the two Matrix3d instances are exactly unequal, false otherwise |